diff options
author | Namhyung Kim <namhyung@gmail.com> | 2015-08-30 00:25:57 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-31 11:29:04 -0700 |
commit | 3086c064fbbf3c4d086f9d7c303d9aa76f5204b2 (patch) | |
tree | 7085dbdb7bc5ecf97a95fec0cda2f808940dbf24 /Documentation/git-stash.txt | |
parent | a17c56c056d5fea0843b429132904c429a900229 (diff) | |
download | git-3086c064fbbf3c4d086f9d7c303d9aa76f5204b2.tar.gz |
stash: allow "stash show" diff output configurablenk/stash-show-config
Some users might want to see diff (patch) output always rather than
diffstat when [s]he runs 'git stash show'. Although this can be
done with adding -p option, users are too lazy to type extra three
keys.
Add two variables that control to show diffstat and patch output
respectively. The stash.showStat is for diffstat and default is
true. The stat.showPatch is for the patch output and default is
false.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-stash.txt')
-rw-r--r-- | Documentation/git-stash.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt index 375213fe46..92df596e5f 100644 --- a/Documentation/git-stash.txt +++ b/Documentation/git-stash.txt @@ -95,6 +95,8 @@ show [<stash>]:: shows the latest one. By default, the command shows the diffstat, but it will accept any format known to 'git diff' (e.g., `git stash show -p stash@{1}` to view the second most recent stash in patch form). + You can use stash.showStat and/or stash.showPatch config variables + to change the default behavior. pop [--index] [-q|--quiet] [<stash>]:: |