<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/read-cache.c, branch v0.99</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v0.99</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v0.99'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2005-06-25T23:52:16Z</updated>
<entry>
<title>[PATCH] Fix oversimplified optimization for add_cache_entry().</title>
<updated>2005-06-25T23:52:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-06-25T09:25:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b155725daeec48436d1fcbec4854ffd317408a6e'/>
<id>urn:sha1:b155725daeec48436d1fcbec4854ffd317408a6e</id>
<content type='text'>
An earlier change to optimize directory-file conflict check
broke what "read-tree --emu23" expects.  This is fixed by this
commit.

(1) Introduces an explicit flag to tell add_cache_entry() not to
    check for conflicts and use it when reading an existing tree
    into an empty stage --- by definition this case can never
    introduce such conflicts.

(2) Makes read-cache.c:has_file_name() and read-cache.c:has_dir_name()
    aware of the cache stages, and flag conflict only with paths
    in the same stage.

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>read-cache.c: remove stray debugging printf</title>
<updated>2005-06-19T06:34:12Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-19T06:34:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2160a025d2a20202e323d33d879521d23e28b709'/>
<id>urn:sha1:2160a025d2a20202e323d33d879521d23e28b709</id>
<content type='text'>
Pointed out by Junio, part of my debugging of the rewrite of the
file/dir conflict handling.
</content>
</entry>
<entry>
<title>Re-implement "check_file_directory_conflict()"</title>
<updated>2005-06-19T03:21:34Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-19T03:21:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=12676608fefd6b148bd9fd4cbd4eb6c2ff3e15e9'/>
<id>urn:sha1:12676608fefd6b148bd9fd4cbd4eb6c2ff3e15e9</id>
<content type='text'>
This is (imho) more readable, and is also a lot faster.  The expense of
looking up sub-directory beginnings was killing us on things like
"git-diff-cache", even though that one didn't even care at all about the
file vs directory conflicts.

We really only care when somebody tries to add a conflicting name to
stage 0.

We should go through the conflict rules more carefully some day.
</content>
</entry>
<entry>
<title>[PATCH] Bugfix: read-cache.c:write_cache() misrecords number of entries.</title>
<updated>2005-06-10T14:42:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-06-10T08:32:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=025a0709b6179506ffc0d35967bdd4fb804d30fb'/>
<id>urn:sha1:025a0709b6179506ffc0d35967bdd4fb804d30fb</id>
<content type='text'>
When we choose to omit deleted entries, we should subtract
numbers of such entries from the total number in the header.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;

Oops.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>git-read-tree: remove deleted files in the working directory</title>
<updated>2005-06-09T22:34:04Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-09T22:34:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aa16021efcd969a44b480d0964e07d52167517db'/>
<id>urn:sha1:aa16021efcd969a44b480d0964e07d52167517db</id>
<content type='text'>
Only when "-u" is used of course.
</content>
</entry>
<entry>
<title>[PATCH] Use ntohs instead of htons to convert ce_flags to host byte order</title>
<updated>2005-06-07T20:44:11Z</updated>
<author>
<name>Timo Hirvonen</name>
<email>tihirvon@ee.oulu.fi</email>
</author>
<published>2005-06-07T20:35:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=972d1bb067d0cea6334da081f6a3e2a6bad6f20b'/>
<id>urn:sha1:972d1bb067d0cea6334da081f6a3e2a6bad6f20b</id>
<content type='text'>
Use ntohs instead of htons to convert ce_flags to host byte order

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] check_file_directory_conflict path fix</title>
<updated>2005-05-27T17:34:24Z</updated>
<author>
<name>David Meybohm</name>
<email>dmeybohmlkml@bellsouth.net</email>
</author>
<published>2005-05-27T02:59:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8310c2c0b585d3ac35a275f795e15fd9887e8b7d'/>
<id>urn:sha1:8310c2c0b585d3ac35a275f795e15fd9887e8b7d</id>
<content type='text'>
check_file_directory_conflict can give the wrong answers. This is
because the wrong length is passed to cache_name_pos. The length
passed should be the length of the whole path from the root, not
the length of each path subcomponent.

	$ git-init-db
	defaulting to local storage area
	$ mkdir path &amp;&amp; touch path/file
	$ git-update-cache --add path/file
	$ rm path/file
	$ mkdir path/file &amp;&amp; touch path/file/f
	$ git-update-cache --add path/file/f  &lt;-- Conflict ignored
	$

Signed-off-by: David Meybohm &lt;dmeybohmlkml@bellsouth.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>Don't care about st_dev in the index file</title>
<updated>2005-05-22T22:08:15Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-05-22T22:08:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2cb45e95438c113871fbbea5b4f629f9463034e7'/>
<id>urn:sha1:2cb45e95438c113871fbbea5b4f629f9463034e7</id>
<content type='text'>
Thomas Glanzmann points out that it doesn't work well with different
clients accessing the repository over NFS - they have different views
on what the "device" for the filesystem is.

Of course, other filesystems may not even have stable inode numbers.
But we don't care. At least for now.
</content>
</entry>
<entry>
<title>Include file cleanups..</title>
<updated>2005-05-22T18:54:17Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-05-22T18:54:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6b0c3121061df6b323f430700e8077b324b5e9dd'/>
<id>urn:sha1:6b0c3121061df6b323f430700e8077b324b5e9dd</id>
<content type='text'>
Add &lt;limits.h&gt; to the include files handled by "cache.h", and remove
extraneous #include directives from various .c files. The rule is that
"cache.h" gets all the basic stuff, so that we'll have as few system
dependencies as possible.
</content>
</entry>
<entry>
<title>Introduce "base_name_compare()" helper function</title>
<updated>2005-05-20T16:09:18Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-05-20T16:09:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=958ba6c96eb58b359c855c9d07e3e45072f0503e'/>
<id>urn:sha1:958ba6c96eb58b359c855c9d07e3e45072f0503e</id>
<content type='text'>
This one compares two pathnames that may be partial basenames, not
full paths. We need to get the path sorting right, since a directory
name will sort as if it had the final '/' at the end.
</content>
</entry>
</feed>
