GetHash: Added short circuit
commit6f186dd0f42ab61f286a8995b8afc885ee24f86b
authorSven Strickroth <email@cs-ware.de>
Sat, 25 Aug 2012 06:28:37 +0000 (25 08:28 +0200)
committerSven Strickroth <email@cs-ware.de>
Sat, 25 Aug 2012 06:28:37 +0000 (25 08:28 +0200)
treeb51fbc3fc44fb4bdca37561e04abc6276f5386a7
parent65a2ae3a16c6e77a8f531afa7841a50284a58aec
GetHash: Added short circuit

There is no need to parse a ref using git/libgit if it's already a 40-byte hash.

Signed-off-by: Sven Strickroth <email@cs-ware.de>
src/Git/Git.cpp