Age | Commit message (Collapse) | Author | Files | Lines |
|
It did a "for_each_ref()" in addition to the HEAD case, which was a
left-over from an early broken test.
|
|
"git_path()" returns a static pathname pointer into the git directory
using a printf-like format specifier.
"head_ref()" works like "for_each_ref()", except for just the HEAD.
|
|
Remove the "./" at the head, it just looks much nicer.
|
|
It needed to take the GIT_DIR information into account, something that
the original receive-pack usage just never cared about.
|
|
This turns it into a generic "do xyz for each ref" library function.
|
|
This patch adds code to read a hash out of a specified file under
{GIT_DIR}/refs/, and to write such files atomically and optionally with an
compare and lock.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
|