summaryrefslogtreecommitdiff
path: root/git-gui
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-06-14 18:43:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-06-14 21:39:22 (GMT)
commitc529d75a75adf943f53dd20b8cf3e37438b4e750 (patch)
treec5da8ecb645847360f48a92992723b9ce76e4ef9 /git-gui
parent44d1c19ee8ab405108b90ab9c02cd86a014639e8 (diff)
downloadgit-c529d75a75adf943f53dd20b8cf3e37438b4e750.zip
git-c529d75a75adf943f53dd20b8cf3e37438b4e750.tar.gz
git-c529d75a75adf943f53dd20b8cf3e37438b4e750.tar.bz2
Simplify and rename find_sha1_file()
Now that we've made the loose SHA1 file reading more careful and streamlined, we only use the old find_sha1_file() function for checking whether a loose object file exists at all. As such, the whole 'return stat information' part of it was just pointless (nobody cares any more), and the naming of the function is not really all that relevant either. So simplify it to not do a 'stat()', but just an existence check (which is what the callers want), and rename it to 'has_loose_object()' which matches the use. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui')
0 files changed, 0 insertions, 0 deletions