]> git.proxmox.com Git - libgit2.git/commit
status: get blob object id of file on disk
authorJason Penny <jasonpenny4@gmail.com>
Wed, 22 Jun 2011 22:19:46 +0000 (18:19 -0400)
committerVicent Marti <tanoku@gmail.com>
Sat, 9 Jul 2011 11:49:50 +0000 (13:49 +0200)
commit205166d27c3ab937f1a106de87d511223abc5059
tree8a819fd692aa5c11b592fa345a7b2002084fc763
parent7361857c50a03dae4bba3f1f3d371db41012658f
status: get blob object id of file on disk

Add git_status_hashfile() to get blob's object id for a file without adding
it to the object database or needing a repository at all.
This functionality is similar to `git hash-object` without '-w'.
include/git2/status.h [new file with mode: 0644]
src/status.c [new file with mode: 0644]
tests/NAMING
tests/resources/status/test.txt [new file with mode: 0644]
tests/t18-status.c [new file with mode: 0644]
tests/test_main.c