Skip to content
Commits on Jul 5, 2005
  1. Add "git_path()" and "head_ref()" helper functions.

    Linus Torvalds committed
    "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.
Commits on Jul 3, 2005
  1. Fix up "for_each_ref()" to be more usable, and use it in git-fsck-cache

    Linus Torvalds committed
    It needed to take the GIT_DIR information into account, something that
    the original receive-pack usage just never cared about.
  2. Generalize the "show each ref" code in receice-pack

    Linus Torvalds committed
    This turns it into a generic "do xyz for each ref" library function.
Commits on Jun 7, 2005
  1. [PATCH] Operations on refs

    Daniel Barkalow committed with Linus Torvalds
    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 <>
    Signed-off-by: Linus Torvalds <>
Something went wrong with that request. Please try again.