<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/cache.h, branch v1.4.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.4.2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.4.2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2006-08-13T00:08:25Z</updated>
<entry>
<title>Better error message when we are unable to lock the index file</title>
<updated>2006-08-13T00:08:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-08-12T08:03:47Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=40aaae88adfe05be435b7bd17093d49869f3276f'/>
<id>urn:sha1:40aaae88adfe05be435b7bd17093d49869f3276f</id>
<content type='text'>
Most of the callers except the one in refs.c use the function to
update the index file.  Among the index writers, everybody
except write-tree dies if they cannot open it for writing.

This gives the function an extra argument, to tell it to die
when it cannot create a new file as the lockfile.

The only caller that does not have to die is write-tree, because
updating the index for the cache-tree part is optional and not
being able to do so does not affect the correctness.  I think we
do not have to be so careful and make the failure into die() the
same way as other callers, but that would be a different patch.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>pager: config variable pager.color</title>
<updated>2006-07-31T22:32:24Z</updated>
<author>
<name>Matthias Lederhofer</name>
<email>matled@gmx.net</email>
</author>
<published>2006-07-29T22:27:43Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=aa086eb813d4fe21aac556a94efe5e29b44d8ca4'/>
<id>urn:sha1:aa086eb813d4fe21aac556a94efe5e29b44d8ca4</id>
<content type='text'>
enable/disable colored output when the pager is in use

Signed-off-by: Matthias Lederhofer &lt;matled@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Make git-mv a builtin</title>
<updated>2006-07-26T20:36:36Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2006-07-26T01:52:35Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=11be42a47632a6f7219d34f5e312aa20ae076142'/>
<id>urn:sha1:11be42a47632a6f7219d34f5e312aa20ae076142</id>
<content type='text'>
This also moves add_file_to_index() to read-cache.c. Oh, and while
touching builtin-add.c, it also removes a duplicate git_config() call.

Signed-off-by: Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Extract helper bits from c-merge-recursive work</title>
<updated>2006-07-26T20:36:36Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2006-07-26T04:32:18Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=8fd2cb4069178539d8cf7711586d4e6378722bf3'/>
<id>urn:sha1:8fd2cb4069178539d8cf7711586d4e6378722bf3</id>
<content type='text'>
This backports the pieces that are not uncooked from the merge-recursive
WIP we have seen earlier, to be used in git-mv rewritten in C.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>sha1_file: add the ability to parse objects in "pack file format"</title>
<updated>2006-07-14T06:11:56Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2006-07-11T19:48:08Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=93821bd97aa516b3b557fc5d1b32fd3431536e44'/>
<id>urn:sha1:93821bd97aa516b3b557fc5d1b32fd3431536e44</id>
<content type='text'>
The pack-file format is slightly different from the traditional git
object format, in that it has a much denser binary header encoding.
The traditional format uses an ASCII string with type and length
information, which is somewhat wasteful.

A new object format starts with uncompressed binary header
followed by compressed payload -- this will allow us later to
copy the payload straight to packfiles.

Obviously they cannot be read by older versions of git, so for
now new object files are created with the traditional format.
core.legacyheaders configuration item, when set to false makes
the code write in new format for people to experiment with.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Make the unpacked object header functions static to sha1_file.c</title>
<updated>2006-07-11T19:58:53Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2006-07-11T17:10:29Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=38d3874ddc5c15120c7fbbdcad26bf5478f58e98'/>
<id>urn:sha1:38d3874ddc5c15120c7fbbdcad26bf5478f58e98</id>
<content type='text'>
Nobody else uses them, and I'm going to start changing them.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>"git -p cmd" to page anywhere</title>
<updated>2006-07-09T10:27:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-06-06T23:58:40Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=85fb65ed6e41e93760a91b33b512d3d9dc67ac66'/>
<id>urn:sha1:85fb65ed6e41e93760a91b33b512d3d9dc67ac66</id>
<content type='text'>
This allows you to say:

	git -p diff v2.6.16-rc5..

and the command pipes the output of any git command to your pager.

[jc: this resurrects a month old RFC patch with improvement
 suggested by Linus to call it --paginate instead of --less.]

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Improve git-peek-remote</title>
<updated>2006-07-04T21:50:35Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2006-07-04T19:29:10Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=2718ff098a1cd1bf48fc230164259b56e3e7178f'/>
<id>urn:sha1:2718ff098a1cd1bf48fc230164259b56e3e7178f</id>
<content type='text'>
This makes git-peek-remote able to basically do everything that
git-ls-remote does (but obviously just for the native protocol, so no
http[s]: or rsync: support).

The default behaviour is the same, but you can now give a mixture of
"--refs", "--tags" and "--heads" flags, where "--refs" forces
git-peek-remote to only show real refs (ie none of the fakey tag lookups,
but also not the special pseudo-refs like HEAD and MERGE_HEAD).

The "--tags" and "--heads" flags respectively limit the output to just
regular tags and heads, of course.

You can still also ask to limit them by name too.

You can combine the flags, so

	git peek-remote --refs --tags .

will show all local _true_ tags, without the generated tag lookups
(compare the output without the "--refs" flag).

And "--tags --heads" will show both tags and heads, but will avoid (for
example) any special refs outside of the standard locations.

I'm also planning on adding a "--ignore-local" flag that allows us to ask
it to ignore any refs that we already have in the local tree, but that's
an independent thing.

All this is obviously gearing up to making "git fetch" cheaper.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Make zlib compression level configurable, and change default.</title>
<updated>2006-07-03T20:55:11Z</updated>
<author>
<name>Joachim B Haga</name>
<email>cjhaga@fys.uio.no</email>
</author>
<published>2006-07-03T20:11:47Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=12f6c308d53509dcb11e309604457d21d60438db'/>
<id>urn:sha1:12f6c308d53509dcb11e309604457d21d60438db</id>
<content type='text'>
With the change in default, "git add ." on kernel dir is about
twice as fast as before, with only minimal (0.5%) change in
object size. The speed difference is even more noticeable
when committing large files, which is now up to 8 times faster.

The configurability is through setting core.compression = [-1..9]
which maps to the zlib constants; -1 is the default, 0 is no
compression, and 1..9 are various speed/size tradeoffs, 9
being slowest.

Signed-off-by: Joachim B Haga (cjhaga@fys.uio.no)
Acked-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>diff --color: use $GIT_DIR/config</title>
<updated>2006-06-25T07:39:13Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-06-24T11:06:23Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=801235c5e6bff0ec1c4e41c9d46535ead3b693c1'/>
<id>urn:sha1:801235c5e6bff0ec1c4e41c9d46535ead3b693c1</id>
<content type='text'>
This lets you use something like this in your $GIT_DIR/config
file.

	[diff]
		color = auto

	[diff.color]
		new = blue
		old = yellow
		frag = reverse

When diff.color is set to "auto", colored diff is enabled when
the standard output is the terminal.  Other choices are "always",
and "never".  Usual boolean true/false can also be used.

The colormap entries can specify colors for the following slots:

	plain	- lines that appear in both old and new file (context)
	meta	- diff --git header and extended git diff headers
	frag	- @@ -n,m +l,k @@ lines (hunk header)
	old	- lines deleted from old file
	new	- lines added to new file

The following color names can be used:

	normal, bold, dim, l, blink, reverse, reset,
	black, red, green, yellow, blue, magenta, cyan,
	white

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