<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/write-tree.c, branch v1.3.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.3.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.3.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2006-04-04T07:11:19Z</updated>
<entry>
<title>Use blob_, commit_, tag_, and tree_type throughout.</title>
<updated>2006-04-04T07:11:19Z</updated>
<author>
<name>Peter Eriksen</name>
<email>s022018@student.dtu.dk</email>
</author>
<published>2006-04-02T12:44:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8e4402592574d630cdb5ab4f55a1b7131802ff72'/>
<id>urn:sha1:8e4402592574d630cdb5ab4f55a1b7131802ff72</id>
<content type='text'>
This replaces occurences of "blob", "commit", "tag", and "tree",
where they're really used as type specifiers, which we already
have defined global constants for.

Signed-off-by: Peter Eriksen &lt;s022018@student.dtu.dk&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>"Assume unchanged" git</title>
<updated>2006-02-09T05:54:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-02-09T05:15:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5f73076c1a9b4b8dc94f77eac98eb558d25e33c0'/>
<id>urn:sha1:5f73076c1a9b4b8dc94f77eac98eb558d25e33c0</id>
<content type='text'>
This adds "assume unchanged" logic, started by this message in the list
discussion recently:

	&lt;Pine.LNX.4.64.0601311807470.7301@g5.osdl.org&gt;

This is a workaround for filesystems that do not have lstat()
that is quick enough for the index mechanism to take advantage
of.  On the paths marked as "assumed to be unchanged", the user
needs to explicitly use update-index to register the object name
to be in the next commit.

You can use two new options to update-index to set and reset the
CE_VALID bit:

	git-update-index --assume-unchanged path...
	git-update-index --no-assume-unchanged path...

These forms manipulate only the CE_VALID bit; it does not change
the object name recorded in the index file.  Nor they add a new
entry to the index.

When the configuration variable "core.ignorestat = true" is set,
the index entries are marked with CE_VALID bit automatically
after:

 - update-index to explicitly register the current object name to the
   index file.

 - when update-index --refresh finds the path to be up-to-date.

 - when tools like read-tree -u and apply --index update the working
   tree file and register the current object name to the index file.

The flag is dropped upon read-tree that does not check out the index
entry.  This happens regardless of the core.ignorestat settings.

Index entries marked with CE_VALID bit are assumed to be
unchanged most of the time.  However, there are cases that
CE_VALID bit is ignored for the sake of safety and usability:

 - while "git-read-tree -m" or git-apply need to make sure
   that the paths involved in the merge do not have local
   modifications.  This sacrifices performance for safety.

 - when git-checkout-index -f -q -u -a tries to see if it needs
   to checkout the paths.  Otherwise you can never check
   anything out ;-).

 - when git-update-index --really-refresh (a new flag) tries to
   see if the index entry is up to date.  You can start with
   everything marked as CE_VALID and run this once to drop
   CE_VALID bit for paths that are modified.

Most notably, "update-index --refresh" honours CE_VALID and does
not actively stat, so after you modified a file in the working
tree, update-index --refresh would not notice until you tell the
index about it with "git-update-index path" or "git-update-index
--no-assume-unchanged path".

This version is not expected to be perfect.  I think diff
between index and/or tree and working files may need some
adjustment, and there probably needs other cases we should
automatically unmark paths that are marked to be CE_VALID.

But the basics seem to work, and ready to be tested by people
who asked for this feature.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<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>
</feed>
