author | Martin von Zweigbergk <martin.von.zweigbergk@gmail.com> | |
Tue, 24 May 2011 02:44:08 +0000 (22:44 -0400) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Sun, 24 Jul 2011 05:34:54 +0000 (15:34 +1000) | ||
commit | 74cb884faa2d4214e349879adda8adc73362d692 | |
tree | 3a9167575e4f07aafac265b59ff457cd16b1b64a | tree | snapshot |
parent | 86e847bcbf2b7f8700bcb3f3eaf7d08801e0cbab | commit | diff |
gitk: Show modified files with separate work tree
"git rev-parse --is-inside-work-tree" is currently used to determine
whether to show modified files in gitk (the red and green fake
commits). This does not work if the current directory is not inside
the work tree, as can be the case e.g. if GIT_WORK_TREE is
set. Instead, check if the repository is not bare and that we are not
inside the .git directory.
Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
"git rev-parse --is-inside-work-tree" is currently used to determine
whether to show modified files in gitk (the red and green fake
commits). This does not work if the current directory is not inside
the work tree, as can be the case e.g. if GIT_WORK_TREE is
set. Instead, check if the repository is not bare and that we are not
inside the .git directory.
Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | diff | blob | history |