summaryrefslogtreecommitdiffstats
path: root/git-rebase.sh
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-03-06 03:59:29 +0100
committerJunio C Hamano <gitster@pobox.com>2008-03-09 09:43:47 +0100
commit40d934df72eaf244c826d5c26da0896ce7185cb6 (patch)
treeee461fff98614c9a4593f16944a2ff0b05d00a78 /git-rebase.sh
parentAdd 'df_name_compare()' helper function (diff)
downloadgit-40d934df72eaf244c826d5c26da0896ce7185cb6.tar.xz
git-40d934df72eaf244c826d5c26da0896ce7185cb6.zip
Make 'traverse_tree()' use linked structure rather than 'const char *base'
This makes the calling convention a bit less obvious, but a lot more flexible. Instead of allocating and extending a new 'base' string, we just link the top-most name into a linked list of the 'info' structure when traversing a subdirectory, and we can generate the basename by following the list. Perhaps even more importantly, the linked list of info structures also gives us a place to naturally save off other information than just the directory name. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-rebase.sh')
0 files changed, 0 insertions, 0 deletions