<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t7501-commit.sh, branch v1.7.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.7.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.7.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2010-03-13T05:55:40Z</updated>
<entry>
<title>commit --amend: copy notes to the new commit</title>
<updated>2010-03-13T05:55:40Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2010-03-12T17:04:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6360d343af9acf7366be6ff89740f5077e12277b'/>
<id>urn:sha1:6360d343af9acf7366be6ff89740f5077e12277b</id>
<content type='text'>
Teaches 'git commit --amend' to copy notes.  The catch is that this
must also be guarded by --no-post-rewrite, which we use to prevent
--amend from copying notes during a rebase -i 'edit'/'reword'.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/warn-author-committer-after-commit'</title>
<updated>2010-01-20T22:40:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-20T22:40:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0877510ad4e8b951b08f9cbb25cfc0d994468979'/>
<id>urn:sha1:0877510ad4e8b951b08f9cbb25cfc0d994468979</id>
<content type='text'>
* jk/warn-author-committer-after-commit:
  user_ident_sufficiently_given(): refactor the logic to be usable from elsewhere
  commit.c::print_summary: do not release the format string too early
  commit: allow suppression of implicit identity advice
  commit: show interesting ident information in summary
  strbuf: add strbuf_addbuf_percentquote
  strbuf_expand: convert "%%" to "%"

Conflicts:
	builtin-commit.c
	ident.c
</content>
</entry>
<entry>
<title>commit: show interesting ident information in summary</title>
<updated>2010-01-14T17:25:28Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2010-01-13T17:39:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=49ff9a7a02266a1b96e2236bc8f8d95e4b9507dd'/>
<id>urn:sha1:49ff9a7a02266a1b96e2236bc8f8d95e4b9507dd</id>
<content type='text'>
There are a few cases of user identity information that we consider
interesting:

  (1) When the author and committer identities do not match.

  (2) When the committer identity was picked automatically from the
      username, hostname and GECOS information.

In these cases, we already show the information in the commit
message template. However, users do not always see that template
because they might use "-m" or "-F". With this patch, we show these
interesting cases after the commit, along with the subject and
change summary. The new output looks like:

  $ git commit \
      -m "federalist papers" \
      --author='Publius &lt;alexander@hamilton.com&gt;'
  [master 3d226a7] federalist papers
   Author: Publius &lt;alexander@hamilton.com&gt;
   1 files changed, 1 insertions(+), 0 deletions(-)

for case (1), and:

  $ git config --global --unset user.name
  $ git config --global --unset user.email
  $ git commit -m foo
  [master 7c2a927] foo
   Committer: Jeff King &lt;peff@c-71-185-130-222.hsd1.va.comcast.net&gt;
  Your name and email address were configured automatically based
  on your username and hostname. Please check that they are accurate.
  You can suppress this message by setting them explicitly:

      git config --global user.name Your Name
      git config --global user.email you@example.com

  If the identity used for this commit is wrong, you can fix it with:

      git commit --amend --author='Your Name &lt;you@example.com&gt;'

   1 files changed, 1 insertions(+), 0 deletions(-)

for case (2).

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>builtin-commit: add --date option</title>
<updated>2009-12-03T20:41:22Z</updated>
<author>
<name>Miklos Vajna</name>
<email>vmiklos@frugalware.org</email>
</author>
<published>2009-12-02T22:16:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=02b47cd77e4af40da95a74c90846965a2ea6999b'/>
<id>urn:sha1:02b47cd77e4af40da95a74c90846965a2ea6999b</id>
<content type='text'>
This is like --author: allow a user to specify a given date without
using the GIT_AUTHOR_DATE environment variable.

Signed-off-by: Miklos Vajna &lt;vmiklos@frugalware.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Do not use VISUAL editor on dumb terminals</title>
<updated>2009-11-13T20:15:28Z</updated>
<author>
<name>Jonathan Nieder</name>
<email>jrnieder@gmail.com</email>
</author>
<published>2009-11-11T23:56:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d33738d7d3ed42a956c74d0125eb2b3abda451b7'/>
<id>urn:sha1:d33738d7d3ed42a956c74d0125eb2b3abda451b7</id>
<content type='text'>
Refuse to use $VISUAL and fall back to $EDITOR if TERM is unset
or set to "dumb".  Traditionally, VISUAL is set to a screen
editor and EDITOR to a line-based editor, which should be more
useful in that situation.

vim, for example, is happy to assume a terminal supports ANSI
sequences even if TERM is dumb (e.g., when running from a text
editor like Acme).  git already refuses to fall back to vi on a
dumb terminal if GIT_EDITOR, core.editor, VISUAL, and EDITOR are
unset, but without this patch, that check is suppressed by
VISUAL=vi.

Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit: More generous accepting of RFC-2822 footer lines.</title>
<updated>2009-10-28T18:03:01Z</updated>
<author>
<name>David Brown</name>
<email>davidb@quicinc.com</email>
</author>
<published>2009-10-28T17:13:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c1e01b0c5106451770ae77a62f52acfe814c3326'/>
<id>urn:sha1:c1e01b0c5106451770ae77a62f52acfe814c3326</id>
<content type='text'>
'git commit -s' will insert a blank line before the Signed-off-by
line at the end of the message, unless this last line is a
Signed-off-by line itself.  Common use has other trailing lines
at the ends of commit text, in the style of RFC2822 headers.

Be more generous in considering lines to be part of this footer.
If the last paragraph of the commit message reasonably resembles
RFC-2822 formatted lines, don't insert that blank line.

The new Signed-off-by line is still only suppressed when the
author's existing Signed-off-by is the last line of the message.

Signed-off-by: David Brown &lt;davidb@quicinc.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: skip perl tests if NO_PERL is defined</title>
<updated>2009-04-09T05:42:16Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2009-04-03T19:33:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1b19ccd236e3369ac77d74ded207406ffbf9feca'/>
<id>urn:sha1:1b19ccd236e3369ac77d74ded207406ffbf9feca</id>
<content type='text'>
These scripts all test git programs that are written in
perl, and thus obviously won't work if NO_PERL is defined.
We pass NO_PERL to the scripts from the building Makefile
via the GIT-BUILD-OPTIONS file.

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>t7501-commit.sh: explicitly check that -F prevents invoking the editor</title>
<updated>2009-01-11T01:45:02Z</updated>
<author>
<name>Adeodato Simó</name>
<email>dato@net.com.org.es</email>
</author>
<published>2009-01-09T17:30:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7eb5bbdb645e04d746bc0edea102744f50a5e529'/>
<id>urn:sha1:7eb5bbdb645e04d746bc0edea102744f50a5e529</id>
<content type='text'>
The "--signoff" test case in t7500-commit.sh was setting VISUAL while
using -F -, which indeed tested that the editor is not spawned with -F.
However, having it there was confusing, since there was no obvious reason
to the casual reader for it to be there.

This commits removes the setting of VISUAL from the --signoff test, and
adds in t7501-commit.sh a dedicated test case, where the rest of tests for
-F are.

Signed-off-by: Adeodato Simó &lt;dato@net.com.org.es&gt;
Okay-then-by: Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t7501: always use test_cmp instead of diff</title>
<updated>2008-09-10T18:16:10Z</updated>
<author>
<name>Miklos Vajna</name>
<email>vmiklos@frugalware.org</email>
</author>
<published>2008-09-10T17:32:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1e368681bd8c35202b91f8998e07d8bbb3de6c7c'/>
<id>urn:sha1:1e368681bd8c35202b91f8998e07d8bbb3de6c7c</id>
<content type='text'>
This should make the output more readable (by default using diff -u)
when some tests fail.

Also changed the diff order from "current expected" to "expected
current".

Signed-off-by: Miklos Vajna &lt;vmiklos@frugalware.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>tests: use "git xyzzy" form (t7200 - t9001)</title>
<updated>2008-09-03T21:51:48Z</updated>
<author>
<name>Nanako Shiraishi</name>
<email>nanako3@lavabit.com</email>
</author>
<published>2008-09-03T08:59:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=47a528ad24185133867ebb5bb7692db2cb8bef39'/>
<id>urn:sha1:47a528ad24185133867ebb5bb7692db2cb8bef39</id>
<content type='text'>
Converts tests between t7201-t9001.

Signed-off-by: Nanako Shiraishi &lt;nanako3@lavabit.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
