Skip to content

Commit b37205c

Browse files
committed
add Git diffing without wrapping lines
1 parent 26e9a95 commit b37205c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bin/git-diff-no-wrap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
# Useful when you have a pager that wraps but want to not use it sometimes
3+
4+
set -e
5+
6+
GIT_PAGER="less -S" git diff "$@"

0 commit comments

Comments
 (0)