Requirements:
- fzf
- git
Commands:
git first-child REV
: Returns the first child of REVgit my-last-commit
: Returns the last commit of the current user (from the current branch)git my-files
: Returns a list of files the current user has changed sometimegit my-diff REV
: Returns a diff from HEAD to REV with a filter to my-filesgit my-diff-since-last-commit
: The diff from HEAD to my-last-commit with the filter to my-files. This is the diff that is relevant for the user.git personal-diff
: Same as above, but in fzf.
The personal diff will open fzf with the files that are relevant to the user. In fzf the files diff is previewed.
enter
: Open the diffctrl-f
: Toggle view (vertical to horizontal)ctrl-u
,ctrl-d
: Scrol up/down half a page in the previewctrl-n
,ctrl-p
: Scrol down/up in the file listshift-up
,shift-down
: Scrol up/down in the previewctrl-y
: Copy the filename to the clipboard (clip.exe, you might change that)ctrl-o
: Opens the file in VS Code (you might change that too)