summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2013-08-26 18:38:31 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2013-08-26 19:01:11 +0000
commit370535fc70e87e465e0d6b39420b0b6a72056b37 (patch)
tree9d39703b4052bf9521dcf6e4335830899d5411ea /cache.h
parentd62e71a0240a7506b870b99e5c068f336e0a137e (diff)
downloadcgit-370535fc70e87e465e0d6b39420b0b6a72056b37.tar
cgit-370535fc70e87e465e0d6b39420b0b6a72056b37.tar.gz
cgit-370535fc70e87e465e0d6b39420b0b6a72056b37.zip
t0108: Avoid unnecessary fork()
Use `git rev-list --max-parents=0 HEAD` instead of `git rev-list HEAD | tail -1` to get the root commit. This works since Git 1.7.4.2. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'cache.h')
0 files changed, 0 insertions, 0 deletions