summaryrefslogtreecommitdiff
path: root/show-files.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-21 17:55:18 (GMT)
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-21 17:55:18 (GMT)
commitbb233d690a9782e1570dc93ead2bf04aaca7cfe4 (patch)
treefb5599a254b880afd905dcef56c639292f94b6ee /show-files.c
parent65bb49144d26a10837582a99e66041035319ff91 (diff)
downloadgit-bb233d690a9782e1570dc93ead2bf04aaca7cfe4.zip
git-bb233d690a9782e1570dc93ead2bf04aaca7cfe4.tar.gz
git-bb233d690a9782e1570dc93ead2bf04aaca7cfe4.tar.bz2
Add support for a "GIT_INDEX_FILE" environment variable.
We use that to specify alternative index files, which can be useful if you want to (for example) generate a temporary index file to do some specific operation that you don't want to mess with your main one with. It defaults to the regular ".git/index" if it hasn't been specified.
Diffstat (limited to 'show-files.c')
-rw-r--r--show-files.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/show-files.c b/show-files.c
index b1a8e3d..b53ab10 100644
--- a/show-files.c
+++ b/show-files.c
@@ -6,7 +6,6 @@
* Copyright (C) Linus Torvalds, 2005
*/
#include <dirent.h>
-#include <sys/param.h>
#include "cache.h"