forked from geoffgarside/cocoagit
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor packSHA1 routine to use a lookup table instead of strchr()
Also, since this method now operates directly on bytes, create a new method 'packSHA1FromBytes' and call it from 'packSHA1FromString' passing a pointer to the bytes in the string. Signed-off-by: Geoff Garside <geoff@geoffgarside.co.uk>
- Loading branch information
1 parent
5f139e0
commit 7fb78de
Showing
2 changed files
with
37 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters