From 3086c064fbbf3c4d086f9d7c303d9aa76f5204b2 Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Sun, 30 Aug 2015 00:25:57 +0900 Subject: stash: allow "stash show" diff output configurable 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 Signed-off-by: Junio C Hamano --- Documentation/git-stash.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Documentation/git-stash.txt') 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 []:: 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] []:: -- cgit v1.2.3