Skip to content

git

Git

Displays information about local git repositories: branch, changed files, and recent commits.

Branch

The name of the currently-active git branch.

Changed Files

A list of all the files that have changed since the last commit, and their status.

Recent Commits

A list of n recent commits, who committed it, and when.

Configuration

git:
  commitCount: 5
  commitFormat: "[forestgreen]%h [grey]%cd [white]%s [grey]%an[white]"
  dateFormat: "%H:%M %d %b %y"
  enabled: true
  position:
    top: 0
    left: 3
    height: 2
    width: 2
  refreshInterval: 8s
  repositories:
  - "/Users/chris/go/src/github.com/wtfutil/wtf"
  - "/Users/user/fakeapp"

Screenshots

git screenshot

Attributes

Name Value
branchInTitle
Optional Whether to show branch name in title.
Default: false
true, false
commitCount
Any positive integer.
commitFormat
Optional The string format for the commit message.
{{ value }}
dateFormat
The format to use when rendering date strings.
Any valid Go date layout which is handled by Time.Format. Default: Jan 2.
lastFolderTitle
Optional Whether to show only last part of directory path instead of full path.
Default: false
true, false
showFilesIfEmpty
Optional Whether to show Changed Files section if no files have changed.
Default: false
true, false
showModuleName
Optional Whether to show 'Git - ' before information in title.
Default: true
true, false

Keyboard

Key Action
/ Open/close the widget's help modal
h Show the previous git repository
l Show the next git repository
p Pull repo
r Refresh the data
{{ arrowback }}Show the previous git repository
{{ arrowfore }}Show the next git repository

Source Code

https://github.com/wtfutil/wtf/tree/master/modules/git