<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/config.c, branch v1.8.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.8.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.8.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2013-02-04T18:24:50Z</updated>
<entry>
<title>Merge branch 'jk/config-parsing-cleanup'</title>
<updated>2013-02-04T18:24:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-02-04T18:24:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=099ba556d05571001293c8eda10a4fc659f83f48'/>
<id>urn:sha1:099ba556d05571001293c8eda10a4fc659f83f48</id>
<content type='text'>
Configuration parsing for tar.* configuration variables were
broken. Introduce a new config-keyname parser API to make the
callers much less error prone.

* jk/config-parsing-cleanup:
  reflog: use parse_config_key in config callback
  help: use parse_config_key for man config
  submodule: simplify memory handling in config parsing
  submodule: use parse_config_key when parsing config
  userdiff: drop parse_driver function
  convert some config callbacks to parse_config_key
  archive-tar: use parse_config_key when parsing config
  config: add helper function for parsing key names
</content>
</entry>
<entry>
<title>Merge branch 'jc/custom-comment-char'</title>
<updated>2013-02-04T18:23:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-02-04T18:23:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=149a4211a4b8d8bbcdd72685d538d6ac7365e29e'/>
<id>urn:sha1:149a4211a4b8d8bbcdd72685d538d6ac7365e29e</id>
<content type='text'>
Allow a configuration variable core.commentchar to customize the
character used to comment out the hint lines in the edited text from
the default '#'.

* jc/custom-comment-char:
  Allow custom "comment char"
</content>
</entry>
<entry>
<title>config: add helper function for parsing key names</title>
<updated>2013-01-23T16:41:49Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2013-01-23T06:23:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1b86bbb0ade4641c2da0dc74ebca1c09ec772bb4'/>
<id>urn:sha1:1b86bbb0ade4641c2da0dc74ebca1c09ec772bb4</id>
<content type='text'>
The config callback functions get keys of the general form:

  section.subsection.key

(where the subsection may be contain arbitrary data, or may
be missing). For matching keys without subsections, it is
simple enough to call "strcmp". Matching keys with
subsections is a little more complicated, and each callback
does it in an ad-hoc way, usually involving error-prone
pointer arithmetic.

Let's provide a helper that keeps the pointer arithmetic all
in one place.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Enable minimal stat checking</title>
<updated>2013-01-22T17:33:16Z</updated>
<author>
<name>Robin Rosenberg</name>
<email>robin.rosenberg@dewire.com</email>
</author>
<published>2013-01-22T07:49:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c08e4d5b5cfa9f692cb8c81e5e9615e330f299c2'/>
<id>urn:sha1:c08e4d5b5cfa9f692cb8c81e5e9615e330f299c2</id>
<content type='text'>
Specifically the fields uid, gid, ctime, ino and dev are set to zero
by JGit. Other implementations, eg. Git in cygwin are allegedly also
somewhat incompatible with Git For Windows and on *nix platforms
the resolution of the timestamps may differ.

Any stat checking by git will then need to check content, which may
be very slow, particularly on Windows. Since mtime and size
is typically enough we should allow the user to tell git to avoid
checking these fields if they are set to zero in the index.

This change introduces a core.checkstat config option where the
the user can select to check all fields (default), or just size
and the whole second part of mtime (minimal).

Signed-off-by: Robin Rosenberg &lt;robin.rosenberg@dewire.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Allow custom "comment char"</title>
<updated>2013-01-16T20:48:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-01-16T19:18:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eff80a9fd990de3605063050dae32f969ef18ba8'/>
<id>urn:sha1:eff80a9fd990de3605063050dae32f969ef18ba8</id>
<content type='text'>
Some users do want to write a line that begin with a pound sign, #,
in their commit log message.  Many tracking system recognise
a token of #&lt;bugid&gt; form, for example.

The support we offer these use cases is not very friendly to the end
users.  They have a choice between

 - Don't do it.  Avoid such a line by rewrapping or indenting; and

 - Use --cleanup=whitespace but remove all the hint lines we add.

Give them a way to set a custom comment char, e.g.

    $ git -c core.commentchar="%" commit

so that they do not have to do either of the two workarounds.

[jc: although I started the topic, all the tests and documentation
updates, many of the call sites of the new strbuf_add_commented_*()
functions, and the change to git-submodule.sh scripted Porcelain are
from Ralf.]

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: Ralf Thielow &lt;ralf.thielow@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jn/warn-on-inaccessible-loosen'</title>
<updated>2013-01-07T06:11:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-01-07T06:11:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4f43e9726af5d036af96de9e5208a6122d378f9b'/>
<id>urn:sha1:4f43e9726af5d036af96de9e5208a6122d378f9b</id>
<content type='text'>
Deal with a situation where .config/git is a file and we notice
.config/git/config is not readable due to ENOTDIR, not ENOENT.

* jn/warn-on-inaccessible-loosen:
  config: exit on error accessing any config file
  doc: advertise GIT_CONFIG_NOSYSTEM
  config: treat user and xdg config permission problems as errors
  config, gitignore: failure to access with ENOTDIR is ok
</content>
</entry>
<entry>
<title>Merge branch 'jk/error-const-return'</title>
<updated>2013-01-06T07:42:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-01-06T07:42:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=29fb15152584455590905726cb5a0e26ea26e9eb'/>
<id>urn:sha1:29fb15152584455590905726cb5a0e26ea26e9eb</id>
<content type='text'>
Help compilers' flow analysis by making it more explicit that
error() always returns -1, to reduce false "variable used
uninitialized" warnings.  Looks somewhat ugly but not too much.

* jk/error-const-return:
  silence some -Wuninitialized false positives
  make error()'s constant return value more visible
</content>
</entry>
<entry>
<title>silence some -Wuninitialized false positives</title>
<updated>2012-12-15T18:45:59Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2012-12-15T17:42:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a469a1019352b8efc4bd7003b0bd59eb60fc428c'/>
<id>urn:sha1:a469a1019352b8efc4bd7003b0bd59eb60fc428c</id>
<content type='text'>
There are a few error functions that simply wrap error() and
provide a standardized message text. Like error(), they
always return -1; knowing that can help the compiler silence
some false positive -Wuninitialized warnings.

One strategy would be to just declare these as inline in the
header file so that the compiler can see that they always
return -1. However, gcc does not always inline them (e.g.,
it will not inline opterror, even with -O3), which renders
our change pointless.

Instead, let's follow the same route we did with error() in
the last patch, and define a macro that makes the constant
return value obvious to the compiler.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>mailmap: support reading mailmap from blobs</title>
<updated>2012-12-12T19:12:35Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2012-12-12T11:04:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=086109006f695166daf2934417a20681b0c94ab8'/>
<id>urn:sha1:086109006f695166daf2934417a20681b0c94ab8</id>
<content type='text'>
In a bare repository, there isn't a simple way to respect an
in-tree mailmap without extracting it to a temporary file.
This patch provides a config variable, similar to
mailmap.file, which reads the mailmap from a blob in the
repository.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/config-ignore-duplicates'</title>
<updated>2012-11-21T21:16:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-11-21T21:16:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2739889c98e8d1c1a40263f7f7c0866879c31edf'/>
<id>urn:sha1:2739889c98e8d1c1a40263f7f7c0866879c31edf</id>
<content type='text'>
Drop duplicate detection from "git-config --get"; this lets it
better match the internal config callbacks, which clears up some
corner cases with includes.

* jk/config-ignore-duplicates:
  builtin/config.c: Fix a sparse warning
  git-config: use git_config_with_options
  git-config: do not complain about duplicate entries
  git-config: collect values instead of immediately printing
  git-config: fix regexp memory leaks on error conditions
  git-config: remove memory leak of key regexp
  t1300: test "git config --get-all" more thoroughly
  t1300: remove redundant test
  t1300: style updates
</content>
</entry>
</feed>
