<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/ls-tree.c, branch v1.0rc1</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.0rc1</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.0rc1'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2005-10-18T00:41:55Z</updated>
<entry>
<title>Update ls-files and ls-tree to use C-style quoting for funny pathnames.</title>
<updated>2005-10-18T00:41:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-10-15T04:56:46Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=22ddf7197958337a8c254122eae4efcd8a54098a'/>
<id>urn:sha1:22ddf7197958337a8c254122eae4efcd8a54098a</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Fix wrong filename listing bug in git-ls-tree.</title>
<updated>2005-10-07T23:54:06Z</updated>
<author>
<name>robfitz@273k.net</name>
<email>robfitz@273k.net</email>
</author>
<published>2005-10-07T23:54:06Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=ab1630a3ed31d6ec5ae83769c78ed542fe3c4a28'/>
<id>urn:sha1:ab1630a3ed31d6ec5ae83769c78ed542fe3c4a28</id>
<content type='text'>
This patch fixes a bug in git-ls-tree in which the wrong filenames are
listed if the exact same file and directory contents are present in
another location in the tree.

Added a new series of test cases for directory and filename handling.

Signed-off-by: Robert Fitzsimons &lt;robfitz@273k.net&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] Unify usage strings declaration</title>
<updated>2005-07-30T00:21:50Z</updated>
<author>
<name>Petr Baudis</name>
<email>pasky@suse.cz</email>
</author>
<published>2005-07-29T09:01:26Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=4d1f11903393bd79998144ce1089ce427a49a2ed'/>
<id>urn:sha1:4d1f11903393bd79998144ce1089ce427a49a2ed</id>
<content type='text'>
All usage strings are now declared as static const char [].

This is carried over from my old git-pb branch.

Signed-off-by: Petr Baudis &lt;pasky@ucw.cz&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Fix sparse warnings.</title>
<updated>2005-07-03T17:10:45Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@g5.osdl.org</email>
</author>
<published>2005-07-03T17:10:45Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=6da4016aea2dc5bf311fea160bd8ef96ca82b999'/>
<id>urn:sha1:6da4016aea2dc5bf311fea160bd8ef96ca82b999</id>
<content type='text'>
Mainly making a lot of local functions and variables be marked "static",
but there was a "zero as NULL" warning in there too.
</content>
</entry>
<entry>
<title>[PATCH] ls-tree: handle trailing slashes in the pathspec properly.</title>
<updated>2005-06-01T03:32:27Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-06-01T01:46:47Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=66204988fe2e5a2a18c4ff55798c7203775d9fd4'/>
<id>urn:sha1:66204988fe2e5a2a18c4ff55798c7203775d9fd4</id>
<content type='text'>
This fixes the problem with ls-tree which failed to show
"drivers/char" directory when the user asked for "drivers/char/"
from the command line.  At the same time, if "drivers/char" were
a non directory, "drivers/char/" would not show it.  This is
consistent with the way diffcore-pathspec has been recently
fixed.

This adds back the diffcore-pathspec test,dropped when my
earlier diffcore-pathspec fix was rejected.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Rewrite ls-tree to behave more like "/bin/ls -a"</title>
<updated>2005-05-29T18:40:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-28T07:05:38Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=6af1f0192ff8740fe77db7cf02c739ccfbdf119c'/>
<id>urn:sha1:6af1f0192ff8740fe77db7cf02c739ccfbdf119c</id>
<content type='text'>
This is a complete rewrite of ls-tree to make it behave more
like what "/bin/ls -a" does in the current working directory.

Namely, the changes are:

 - Unlike the old ls-tree behaviour that used paths arguments to
   restrict output (not that it worked as intended---as pointed
   out in the mailing list discussion, it was quite incoherent),
   this rewrite uses paths arguments to specify what to show.

 - Without arguments, it implicitly uses the root level as its
   sole argument ("/bin/ls -a" behaves as if "." is given
   without argument).

 - Without -r (recursive) flag, it shows the named blob (either
   file or symlink), or the named tree and its immediate
   children.

 - With -r flag, it shows the named path, and recursively
   descends into it if it is a tree.

 - With -d flag, it shows the named path and does not show its
   children even if the path is a tree, nor descends into it
   recursively.

This is still request-for-comments patch.  There is no mailing
list consensus that this proposed new behaviour is a good one.

The patch to t/t3100-ls-tree-restrict.sh illustrates
user-visible behaviour changes.  Namely:

 * "git-ls-tree $tree path1 path0" lists path1 first and then
   path0.  It used to use paths as an output restrictor and
   showed output in cache entry order (i.e. path0 first and then
   path1) regardless of the order of paths arguments.

 * "git-ls-tree $tree path2" lists path2 and its immediate
   children but having explicit paths argument does not imply
   recursive behaviour anymore, hence paths/baz is shown but not
   paths/baz/b.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Make ls-* output consistent with diff-* output format.</title>
<updated>2005-05-26T22:18:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-26T21:38:19Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=2eab945e865317cb7d390aec214303f1d931b53a'/>
<id>urn:sha1:2eab945e865317cb7d390aec214303f1d931b53a</id>
<content type='text'>
Use SP as the column separator except the ones before path which
uses TAB, to make the output format consistent across ls-* and
diff-* commands.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] ls-tree matching multiple paths</title>
<updated>2005-05-26T22:18:55Z</updated>
<author>
<name>Jason McMullan</name>
<email>jason.mcmullan@timesys.com</email>
</author>
<published>2005-05-26T17:52:50Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=6d3a5077ddb78a73fe26b154c459bc4731bca0dd'/>
<id>urn:sha1:6d3a5077ddb78a73fe26b154c459bc4731bca0dd</id>
<content type='text'>
Enhance git-ls-tree to allow optional 'match paths' that
restricts the output of git-ls-tree.  This is useful to retrieve
a single file's SHA1 out of a tree without creating an index.

[JC: I added the test case]

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>sparse cleanup</title>
<updated>2005-05-20T18:46:10Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-05-20T18:46:10Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=e99d59ff0bff349ef205cef1076e0354c8130680'/>
<id>urn:sha1:e99d59ff0bff349ef205cef1076e0354c8130680</id>
<content type='text'>
Fix various things that sparse complains about:
 - use NULL instead of 0
 - make sure we declare everything properly, or mark it static
 - use proper function declarations ("fn(void)" instead of "fn()")

Sparse is always right.
</content>
</entry>
<entry>
<title>[PATCH] cleanup of in-code names</title>
<updated>2005-05-19T17:52:00Z</updated>
<author>
<name>Alexey Nezhdanov</name>
<email>snake@penza-gsm.ru</email>
</author>
<published>2005-05-19T11:17:16Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=667bb59b2d5b0a2e7fca5970d6f757790a6edd74'/>
<id>urn:sha1:667bb59b2d5b0a2e7fca5970d6f757790a6edd74</id>
<content type='text'>
Fixes all in-code names that leaved during "big name change".

Signed-off-by: Alexey Nezhdanov &lt;snake@penza-gsm.ru&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
