diff options
author | Piotr Krukowiecki <piotr.krukowiecki@gmail.com> | 2011-03-12 09:57:46 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-14 00:28:37 -0700 |
commit | 26b59b4812c81de09aa450ebbdf2bb0ea71c0dfd (patch) | |
tree | 75477b9672bb2571b595fd7aa021f2d5633d53c7 /block-sha1/sha1.c | |
parent | Revert "core.abbrevguard: Ensure short object names stay unique a bit longer" (diff) | |
download | tgif-26b59b4812c81de09aa450ebbdf2bb0ea71c0dfd.tar.xz |
git stash: show status relative to current directory
git status shows modified paths relative to current directory, so it's
possible to copy&paste them directly, even if you're in a subdirectory.
But "git stash apply" always shows status from root of git repository.
This is misleading because you can't use the paths without modifications.
This is caused by changing directory to root of repository at the
beginning of git stash.
This patch makes git stash show status relative to current directory.
Instead of removing the "cd to toplevel", which would affect whole
script and might have other side-effects, the fix is to change directory
temporarily back to original dir just before displaying status.
Signed-off-by: Piotr Krukowiecki <piotr.krukowiecki@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'block-sha1/sha1.c')
0 files changed, 0 insertions, 0 deletions