Jason Penny
2b90cc26de
status: consolidate some test code
...
Refactored copy of test repo to a function.
2011-07-09 13:49:50 +02:00
Jason Penny
34dfea2774
status: handle subdirs for git_status_file
2011-07-09 13:49:50 +02:00
Jason Penny
20361b2f69
status: get status for single file
...
Add git_status_file to be able to retrieve status of single file by
supplying a path.
2011-07-09 13:49:50 +02:00
Jason Penny
3af6b34a76
status: get file statuses and run callback
...
Add git_status_foreach() to run a callback on each file passing the path
and a status value.
2011-07-09 13:49:50 +02:00
Jason Penny
205166d27c
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'.
2011-07-09 13:49:50 +02:00