~mdw
/
tig
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Pass --root to git-show so the diff command will show the initial commit
[tig]
/
tig.c
diff --git
a/tig.c
b/tig.c
index
b2e1a36
..
5eded68
100644
(file)
--- a/
tig.c
+++ b/
tig.c
@@
-74,7
+74,7
@@
static size_t utf8_length(const char *string, size_t max_width, int *coloffset,
"git ls-remote . 2>/dev/null"
#define TIG_DIFF_CMD \
"git ls-remote . 2>/dev/null"
#define TIG_DIFF_CMD \
- "git show --patch-with-stat --find-copies-harder -B -C %s 2>/dev/null"
+ "git show --
root --
patch-with-stat --find-copies-harder -B -C %s 2>/dev/null"
#define TIG_LOG_CMD \
"git log --cc --stat -n100 %s 2>/dev/null"
#define TIG_LOG_CMD \
"git log --cc --stat -n100 %s 2>/dev/null"
@@
-679,7
+679,7
@@
static struct keybinding default_keybindings[] = {
{ 'v', REQ_SHOW_VERSION },
{ 'r', REQ_SCREEN_REDRAW },
{ 'n', REQ_TOGGLE_LINENO },
{ 'v', REQ_SHOW_VERSION },
{ 'r', REQ_SCREEN_REDRAW },
{ 'n', REQ_TOGGLE_LINENO },
- { 'g', REQ_TOGGLE_REV_GRAPH},
+ { 'g', REQ_TOGGLE_REV_GRAPH
},
{ ':', REQ_PROMPT },
/* wgetch() with nodelay() enabled returns ERR when there's no input. */
{ ':', REQ_PROMPT },
/* wgetch() with nodelay() enabled returns ERR when there's no input. */