<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin-commit.c, branch v1.6.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.6.2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.6.2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2009-02-11T06:25:39Z</updated>
<entry>
<title>Generalize and libify index_is_dirty() to index_differs_from(...)</title>
<updated>2009-02-11T06:25:39Z</updated>
<author>
<name>Stephan Beyer</name>
<email>s-beyer@gmx.net</email>
</author>
<published>2009-02-10T14:30:35Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=75f3ff2eeaba820b37016f464b6d1078cb6260e2'/>
<id>urn:sha1:75f3ff2eeaba820b37016f464b6d1078cb6260e2</id>
<content type='text'>
index_is_dirty() in builtin-revert.c checks if the index is dirty.
This patch generalizes this function to check if the index differs
from a revision, i.e. the former index_is_dirty() behavior can now be
achieved by index_differs_from("HEAD", 0).

The second argument "diff_flags" allows to set further diff option
flags like DIFF_OPT_IGNORE_SUBMODULES. See DIFF_OPT_* macros in diff.h
for a list.

index_differs_from() seems to be useful for more than builtin-revert.c,
so it is moved into diff-lib.c and also used in builtin-commit.c.

Yet to mention:

 - "rev.abbrev = 0;" can be safely removed.
   This has no impact on performance or functioning of neither
   setup_revisions() nor run_diff_index().

 - rev.pending.objects is free()d because this fixes a leak.
   (Also see 295dd2ad "Fix memory leak in traverse_commit_list")

Mentored-by: Daniel Barkalow &lt;barkalow@iabervon.org&gt;
Mentored-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Stephan Beyer &lt;s-beyer@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'cb/add-pathspec'</title>
<updated>2009-01-26T01:13:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-01-26T01:13:11Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=d64d4835b83669d5c9c8ce1989859efa803874db'/>
<id>urn:sha1:d64d4835b83669d5c9c8ce1989859efa803874db</id>
<content type='text'>
* cb/add-pathspec:
  remove pathspec_match, use match_pathspec instead
  clean up pathspec matching
</content>
</entry>
<entry>
<title>Merge branch 'sb/hook-cleanup'</title>
<updated>2009-01-22T00:50:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-01-22T00:50:43Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=1afcde6da1221bdb85a3630d995f9ca384042cb9'/>
<id>urn:sha1:1afcde6da1221bdb85a3630d995f9ca384042cb9</id>
<content type='text'>
* sb/hook-cleanup:
  run_hook(): allow more than 9 hook arguments
  run_hook(): check the executability of the hook before filling argv
  api-run-command.txt: talk about run_hook()
  Move run_hook() from builtin-commit.c into run-command.c (libgit)
  checkout: don't crash on file checkout before running post-checkout hook
</content>
</entry>
<entry>
<title>commit: more compact summary and without extra quotes</title>
<updated>2009-01-20T06:38:06Z</updated>
<author>
<name>Santi Béjar</name>
<email>santi@agolina.net</email>
</author>
<published>2009-01-19T22:45:16Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=c5ee71fdeda21aef8a65366a3f66aa7cbe58cba0'/>
<id>urn:sha1:c5ee71fdeda21aef8a65366a3f66aa7cbe58cba0</id>
<content type='text'>
Update the report format again to save the screen real estates, while
avoiding from enclosing the one-line summary of the commit log inside
double quotes pair, which looks awkward when the message begins or ends
with a double quote.  The old format looked like this:

    [master]: created d9a5491: "foo:bar"

Simply removing the double quotes were found to be confusing as a message
often begins with a short-word (area of the system) and a colon.

The new format looks like this:

    [master d9a5491] foo:bar

As discussed in the git mailing list:

    http://thread.gmane.org/gmane.comp.version-control.git/101687/focus=101735

Signed-off-by: Santi Béjar &lt;santi@agolina.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mh/maint-commit-color-status'</title>
<updated>2009-01-18T07:05:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-01-18T07:05:19Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=8f5707f9a9ac9e1f5afe6f415731fb46ea2da8ff'/>
<id>urn:sha1:8f5707f9a9ac9e1f5afe6f415731fb46ea2da8ff</id>
<content type='text'>
* mh/maint-commit-color-status:
  git-status -v: color diff output when color.ui is set
  git-commit: color status output when color.ui is set
</content>
</entry>
<entry>
<title>Merge branch 'maint-1.6.0' into maint</title>
<updated>2009-01-18T06:39:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-01-18T06:39:49Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=78f111e12de40e2d9aa8d0774acc287f79862b13'/>
<id>urn:sha1:78f111e12de40e2d9aa8d0774acc287f79862b13</id>
<content type='text'>
* maint-1.6.0:
  builtin-fsck: fix off by one head count
  Documentation: let asciidoc align related options
  githooks.txt: add missing word
  builtin-commit.c: do not remove COMMIT_EDITMSG
</content>
</entry>
<entry>
<title>builtin-commit.c: do not remove COMMIT_EDITMSG</title>
<updated>2009-01-18T01:57:35Z</updated>
<author>
<name>Stephan Beyer</name>
<email>s-beyer@gmx.net</email>
</author>
<published>2009-01-16T19:40:05Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=2454ac7b9fbc12db5cca8cd388422360528d7d6f'/>
<id>urn:sha1:2454ac7b9fbc12db5cca8cd388422360528d7d6f</id>
<content type='text'>
git-commit tries to remove the file ./COMMIT_EDITMSG instead of
$GIT_DIR/COMMIT_EDITMSG after commit preparation (e.g. running
hooks, launching editor).
This behavior exists since f5bbc3225c4b07 "Port git commit to C".

Some test cases (e.g. t/t7502-commit.sh) rely on the existence of
$GIT_DIR/COMMIT_EDITMSG after committing and, I guess, many people
are used to it.  So it is best not to remove it.

This patch just removes the removal of COMMIT_EDITMSG.

Signed-off-by: Stephan Beyer &lt;s-beyer@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Move run_hook() from builtin-commit.c into run-command.c (libgit)</title>
<updated>2009-01-18T01:16:24Z</updated>
<author>
<name>Stephan Beyer</name>
<email>s-beyer@gmx.net</email>
</author>
<published>2009-01-16T19:09:59Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=ae98a0089ff7f7641ed15ddd595797de56eb49f1'/>
<id>urn:sha1:ae98a0089ff7f7641ed15ddd595797de56eb49f1</id>
<content type='text'>
A function that runs a hook is used in several Git commands.
builtin-commit.c has the one that is most general for cases without
piping. The one in builtin-gc.c prints some useful warnings.
This patch moves a merged version of these variants into libgit and
lets the other builtins use this libified run_hook().

The run_hook() function used in receive-pack.c feeds the standard
input of the pre-receive or post-receive hooks. This function is
renamed to run_receive_hook() because the libified run_hook() cannot
handle this.

Mentored-by: Daniel Barkalow &lt;barkalow@iabervon.org&gt;
Mentored-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Stephan Beyer &lt;s-beyer@gmx.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>remove pathspec_match, use match_pathspec instead</title>
<updated>2009-01-15T03:18:44Z</updated>
<author>
<name>Clemens Buchacher</name>
<email>drizzd@aon.at</email>
</author>
<published>2009-01-14T14:54:35Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0b50922abffb82c473182b03eb5bb47a978cceac'/>
<id>urn:sha1:0b50922abffb82c473182b03eb5bb47a978cceac</id>
<content type='text'>
Both versions have the same functionality. This removes any
redundancy.

This also adds makes two extensions to match_pathspec:

- If pathspec is NULL, return 1. This reflects the behavior of git
  commands, for which no paths usually means "match all paths".

- If seen is NULL, do not use it.

Signed-off-by: Clemens Buchacher &lt;drizzd@aon.at&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-status -v: color diff output when color.ui is set</title>
<updated>2009-01-09T01:32:19Z</updated>
<author>
<name>Markus Heidelberg</name>
<email>markus.heidelberg@web.de</email>
</author>
<published>2009-01-08T18:53:05Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=38920dd6d377a82f4c8c51c3451271d6a93c92a8'/>
<id>urn:sha1:38920dd6d377a82f4c8c51c3451271d6a93c92a8</id>
<content type='text'>
When using "git status -v", the diff output wasn't colored, even though
color.ui was set. Only when setting color.diff it worked.

Signed-off-by: Markus Heidelberg &lt;markus.heidelberg@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
