summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorMartin von Zweigbergk <martin.von.zweigbergk@gmail.com>2011-05-23 22:44:08 -0400
committerPaul Mackerras <paulus@samba.org>2011-07-24 15:34:54 +1000
commit74cb884faa2d4214e349879adda8adc73362d692 (patch)
tree3a9167575e4f07aafac265b59ff457cd16b1b64a /builtin/commit.c
parent86e847bcbf2b7f8700bcb3f3eaf7d08801e0cbab (diff)
downloadgit-74cb884faa2d4214e349879adda8adc73362d692.tar.gz
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>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions