Skip to content

Commit

Permalink
tig: Add mapping for running git diff
Browse files Browse the repository at this point in the history
Until tig can use more fancy differs (eg when git is configured to use
delta), this will use `git diff` under the hood to achieve this a bit
more cumbersomely.

see jonas/tig#542
  • Loading branch information
thomasjachmann committed May 9, 2022
1 parent cae6d62 commit acaa1d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git/.config/git/config
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@
diff = 0 !git diff --ignore-space-change -U0 %(commit)^ %(commit)
status = A !sh -c 'git add --intent-to-add %(file) && git add -e %(file)'
status = P !git add -p %(file)
status = d !git diff %(file)
stash = D ![[ "%(promptDrop-y/n:)" == "y" ]] && echo %(stash)

[tig "color"]
Expand Down

0 comments on commit acaa1d2

Please sign in to comment.