summaryrefslogtreecommitdiff
path: root/builtin-show-ref.c
diff options
context:
space:
mode:
authorLibravatar Linus Torvalds <torvalds@osdl.org>2006-09-11 12:03:15 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-09-16 02:21:11 -0700
commite7676d2f6454c9c99e600ee2ce3c7205a9fcfb5f (patch)
treef7aa5183b7bbf18debc5cd50a4ea24d632d79ed4 /builtin-show-ref.c
parentgitweb: Add link to "project_index" view to "project_list" page (diff)
downloadtgif-e7676d2f6454c9c99e600ee2ce3c7205a9fcfb5f.tar.xz
Allow multiple "git_path()" uses
This allows you to maintain a few filesystem pathnames concurrently, by simply replacing the single static "pathname" buffer with a LRU of four buffers. We did exactly the same thing with sha1_to_hex(), for pretty much exactly the same reason. Sometimes you want to use two pathnames, and while it's easy enough to xstrdup() them, why not just do the LU buffer thing. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-show-ref.c')
0 files changed, 0 insertions, 0 deletions