<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/write-tree.c, branch v1.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2005-12-06T06:31:18Z</updated>
<entry>
<title>write-tree: check extra arguments and die but be a bit more helpful.</title>
<updated>2005-12-06T06:31:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-12-06T06:30:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=75a46f6b0ed3c3aa6fe4ff53a8c20cb58cbb3732'/>
<id>urn:sha1:75a46f6b0ed3c3aa6fe4ff53a8c20cb58cbb3732</id>
<content type='text'>
"git-write-tree junk" complains and dies, but it does not say
what option it supports.  Die with the usage string in such a
case.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Make the rest of commands work from a subdirectory.</title>
<updated>2005-11-29T07:13:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-11-26T08:50:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=53228a5fb8e80f87803e4a3ba8ed25b70fb4871d'/>
<id>urn:sha1:53228a5fb8e80f87803e4a3ba8ed25b70fb4871d</id>
<content type='text'>
These commands are converted to run from a subdirectory.

    commit-tree convert-objects merge-base merge-index mktag
    pack-objects pack-redundant prune-packed read-tree tar-tree
    unpack-file unpack-objects update-server-info write-tree

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] Trivial tidyups</title>
<updated>2005-07-30T00:21:49Z</updated>
<author>
<name>Petr Baudis</name>
<email>pasky@suse.cz</email>
</author>
<published>2005-07-29T09:00:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0b124bb4bf8eafae8a4eae9c1fc44bf63da2e62e'/>
<id>urn:sha1:0b124bb4bf8eafae8a4eae9c1fc44bf63da2e62e</id>
<content type='text'>
Simple whitespace-related tidyups ensuring style consistency.

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>[PATCH] add --missing-ok option to write-tree</title>
<updated>2005-07-11T17:20:53Z</updated>
<author>
<name>Bryan Larsen</name>
<email>bryanlarsen@yahoo.com</email>
</author>
<published>2005-07-11T03:53:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9c1fa70aaa03f48fb172f9a96d57148f144bc3a9'/>
<id>urn:sha1:9c1fa70aaa03f48fb172f9a96d57148f144bc3a9</id>
<content type='text'>
This option allows a write-tree even if the referenced objects are not
in the database.

Signed-off-by: Bryan Larsen &lt;bryan.larsen@gmail.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] git-write-tree doesn't check alternate directories</title>
<updated>2005-06-25T20:41:10Z</updated>
<author>
<name>Jan Harkes</name>
<email>jaharkes@cs.cmu.edu</email>
</author>
<published>2005-06-25T18:23:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7323aa11af1527d5a786d93ee34401c72c5df051'/>
<id>urn:sha1:7323aa11af1527d5a786d93ee34401c72c5df051</id>
<content type='text'>
git-write-tree failed when referenced objects only exist in the
GIT_ALTERNATE_OBJECT_DIRECTORIES path.

Signed-off-by: Jan Harkes &lt;jaharkes@cs.cmu.edu&gt;
Acked-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</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.shady.money/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>
<entry>
<title>Merge with http://members.cox.net/junkio/git-jc.git</title>
<updated>2005-05-11T00:00:49Z</updated>
<author>
<name>Petr Baudis</name>
<email>pasky@ucw.cz</email>
</author>
<published>2005-05-11T00:00:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f1a7eb36b017c62d9a007b6b8660bdeec3f94f97'/>
<id>urn:sha1:f1a7eb36b017c62d9a007b6b8660bdeec3f94f97</id>
<content type='text'>
</content>
</entry>
<entry>
<title>write-tree is now willing to write empty tree</title>
<updated>2005-05-08T14:15:59Z</updated>
<author>
<name>Petr Baudis</name>
<email>pasky@ucw.cz</email>
</author>
<published>2005-05-08T14:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c899350e9dbe8700ad3c945b9743e9472732684b'/>
<id>urn:sha1:c899350e9dbe8700ad3c945b9743e9472732684b</id>
<content type='text'>
Cogito wants to be able to do some initial commit at the time of cg-init,
which may be empty in case when cg-init is called in an empty tree.
</content>
</entry>
<entry>
<title>Notice index that has path and path/file and refuse to write such a tree.</title>
<updated>2005-05-07T19:22:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-07T19:22:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8eef4d3ed13d7604056b26ce58d0db007be530dd'/>
<id>urn:sha1:8eef4d3ed13d7604056b26ce58d0db007be530dd</id>
<content type='text'>
Kay Sievers noticed that you can have both path and path/file in
the cache and write-tree happily creates a tree object from such
a state.  Since a merge can result in such situation and the
user should be able to see the situation by looking at the
cache, rather than forbidding add_cache_entry() to create such
conflicts, fix it by making write-tree refuse to write such an
nonsensical tree.  Here is a test case.

-- test case --

$ ls -a
./  ../
$ git-init-db
defaulting to local storage area
$ date &gt;path
$ git-update-cache --add path
$ rm path
$ mkdir path
$ date &gt;path/file
$ git-update-cache --add path/file
$ git-ls-files --stage
100644 1738f2536b1201218c41153941da065cc26174c9 0 path
100644 620c72f1c1de15f56ff9d63d6d7cdc69e828f1e3 0 path/file
$ git-ls-tree $(git-write-tree)                     ;# using old one
100644	blob	1738f2536b1201218c41153941da065cc26174c9	path
040000	tree	ec116937f223e3df95aeac9f076902ae1618ae98	path
$ ../git-write-tree                                 ;# using new one
You have both path and path/file
fatal: write-tree: not able to write tree
$ exit

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] introduce xmalloc and xrealloc</title>
<updated>2005-04-26T19:00:58Z</updated>
<author>
<name>Christopher Li</name>
<email>git@chrisli.org</email>
</author>
<published>2005-04-26T19:00:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=812666c8e66a21e668c0789d0422aa5a7db54961'/>
<id>urn:sha1:812666c8e66a21e668c0789d0422aa5a7db54961</id>
<content type='text'>
Introduce xmalloc and xrealloc to die gracefully with a descriptive
message when out of memory, rather than taking a SIGSEGV. 

Signed-off-by: Christopher Li&lt;chrislgit@chrisli.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
