<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/t/t7500-commit.sh, branch v2.16.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.16.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.16.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-01-09T22:32:55Z</updated>
<entry>
<title>Merge branch 'js/test-with-ws-in-path'</title>
<updated>2018-01-09T22:32:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-01-09T22:32:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d702d5c5bd675d203a2ced2786bf82ef96b4ed2b'/>
<id>urn:sha1:d702d5c5bd675d203a2ced2786bf82ef96b4ed2b</id>
<content type='text'>
Test fixes.

* js/test-with-ws-in-path:
  t0302 &amp; t3900: add forgotten quotes
  Allow the test suite to pass in a directory whose name contains spaces
</content>
</entry>
<entry>
<title>Allow the test suite to pass in a directory whose name contains spaces</title>
<updated>2018-01-03T23:55:48Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2018-01-03T16:54:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=567c53d00f194a2826dda0b6be5d66283138377d'/>
<id>urn:sha1:567c53d00f194a2826dda0b6be5d66283138377d</id>
<content type='text'>
It is totally legitimate to clone Git's source code anywhere, including
into, say, directories whose name (or the name of its absolute path)
contains spaces.

However, a couple of tests failed to anticipate this, for lack of
quoting (or in one instance, for failure to expect more than one space
in the absolute path of the TEST_DIRECTORY). This can be easily verified
by calling these commands in your current clone:

	git clone . with\ spaces
	cd with\ spaces
	make -j15 test

Let's fix this.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Reviewed-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit-template: distinguish status information unconditionally</title>
<updated>2017-06-30T14:50:21Z</updated>
<author>
<name>Kaartic Sivaraam</name>
<email>kaarticsivaraam91196@gmail.com</email>
</author>
<published>2017-06-30T12:12:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b3cf1b77894861920671def129a981b54ec9618e'/>
<id>urn:sha1:b3cf1b77894861920671def129a981b54ec9618e</id>
<content type='text'>
The commit template adds the status information without
adding a new line to distinguish them in the absence
of optional parts. This results in difficulty in interpreting
it's content, specifically for inexperienced users.

Unconditionally, add new lines to separate the status message
from the other parts of the commit-template to make it more
readable.

Signed-off-by: Kaartic Sivaraam &lt;kaarticsivaraam91196@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>commit: do not complain of empty messages from -C</title>
<updated>2014-04-28T16:58:09Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-04-25T23:11:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=076cbd6341182d296671cb101c75145eb3bfda0a'/>
<id>urn:sha1:076cbd6341182d296671cb101c75145eb3bfda0a</id>
<content type='text'>
When we pick another commit's message, we die() immediately
if we find that it's empty and we are not going to run an
editor (i.e., when running "-C" instead of "-c").  However,
this check is redundant and harmful.

It's redundant because we will already notice the empty
message later, after we would have run the editor, and die
there (just as we would for a regular, not "-C" case, where
the user provided an empty message in the editor).

It's harmful for a few reasons:

  1. It does not respect --allow-empty-message. As a result,
     a "git rebase -i" cannot "pick" such a commit. So you
     cannot even go back in time to fix it with a "reword"
     or "edit" instruction.

  2. It does not take into account other ways besides the
     editor to modify the message. For example, "git commit
     -C empty-commit -m foo" could take the author
     information from empty-commit, but add a message to it.
     There's more to do to make that work correctly (and
     right now we explicitly forbid "-C with -m"), but this
     removes one roadblock.

  3. The existing check is not enough to prevent segfaults.
     We try to find the "\n\n" header/body boundary in the
     commit. If it is at the end of the string (i.e., no
     body), _or_ if we cannot find it at all (i.e., a
     truncated commit object), we consider the message
     empty. With "-C", that's OK; we die in either case. But
     with "-c", we continue on, and in the case of a
     truncated commit may end up dereferencing NULL+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>t7500: fix flipped actual/expect</title>
<updated>2013-07-01T16:53:00Z</updated>
<author>
<name>Andrew Pimlott</name>
<email>andrew@pimlott.net</email>
</author>
<published>2013-07-01T16:20:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f66d000b0d7d6d3c858f3aacd9a67d4809ac8011'/>
<id>urn:sha1:f66d000b0d7d6d3c858f3aacd9a67d4809ac8011</id>
<content type='text'>
Signed-off-by: Andrew Pimlott &lt;andrew@pimlott.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>t7500: use test_config to set/unset git config variables</title>
<updated>2013-03-25T15:50:53Z</updated>
<author>
<name>Yann Droneaud</name>
<email>ydroneaud@opteya.com</email>
</author>
<published>2013-03-24T21:06:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=22179b307894a6e14f33459b43cd485a03ac4add'/>
<id>urn:sha1:22179b307894a6e14f33459b43cd485a03ac4add</id>
<content type='text'>
Instead of using construct such as:
    test_when_finished "git config --unset &lt;key&gt;"
    git config &lt;key&gt; &lt;value&gt;
uses
    test_config &lt;key&gt; &lt;value&gt;
The latter takes care of removing &lt;key&gt; at the end of the test.

Signed-off-by: Yann Droneaud &lt;ydroneaud@opteya.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'bf/commit-template-no-cleanup'</title>
<updated>2011-05-13T18:03:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-05-13T18:03:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e4ae6efb78ca7d2ff16575f841b1781b96a7582c'/>
<id>urn:sha1:e4ae6efb78ca7d2ff16575f841b1781b96a7582c</id>
<content type='text'>
* bf/commit-template-no-cleanup:
  Do not strip empty lines / trailing spaces from a commit message template
</content>
</entry>
<entry>
<title>Do not strip empty lines / trailing spaces from a commit message template</title>
<updated>2011-05-11T18:20:28Z</updated>
<author>
<name>Boris Faure</name>
<email>billiob@gmail.com</email>
</author>
<published>2011-05-08T10:31:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8b1ae678a33e2d1ccf3080977b692a59acad9b50'/>
<id>urn:sha1:8b1ae678a33e2d1ccf3080977b692a59acad9b50</id>
<content type='text'>
Templates should be just that: A form that the user fills out, and forms
have blanks. If people are attached to not having extra whitespace in the
editor, they can simply clean up their templates.

Added test with editor adding even more whitespace.

Signed-off-by: Boris Faure &lt;billiob@gmail.com&gt;
Based-on-patch-by:Sebastian Schuberth &lt;sschuberth@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>i18n: use test_i18ncmp in t7500</title>
<updated>2011-04-13T22:52:47Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-04-12T23:48:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=29853c82424d291f93cf8e45ee2815b85f8a4df3'/>
<id>urn:sha1:29853c82424d291f93cf8e45ee2815b85f8a4df3</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ab/i18n-st'</title>
<updated>2011-04-02T00:55:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-04-02T00:55:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6c80cd298a9f2f36ae4e741cf65d94b7c184fb82'/>
<id>urn:sha1:6c80cd298a9f2f36ae4e741cf65d94b7c184fb82</id>
<content type='text'>
* ab/i18n-st: (69 commits)
  i18n: git-shortlog basic messages
  i18n: git-revert split up "could not revert/apply" message
  i18n: git-revert literal "me" messages
  i18n: git-revert "Your local changes" message
  i18n: git-revert basic messages
  i18n: git-notes GIT_NOTES_REWRITE_MODE error message
  i18n: git-notes basic commands
  i18n: git-gc "Auto packing the repository" message
  i18n: git-gc basic messages
  i18n: git-describe basic messages
  i18n: git-clean clean.requireForce messages
  i18n: git-clean basic messages
  i18n: git-bundle basic messages
  i18n: git-archive basic messages
  i18n: git-status "renamed: " message
  i18n: git-status "Initial commit" message
  i18n: git-status "Changes to be committed" message
  i18n: git-status shortstatus messages
  i18n: git-status "nothing to commit" messages
  i18n: git-status basic messages
  ...

Conflicts:
	builtin/branch.c
	builtin/checkout.c
	builtin/clone.c
	builtin/commit.c
	builtin/grep.c
	builtin/merge.c
	builtin/push.c
	builtin/revert.c
	t/t3507-cherry-pick-conflict.sh
	t/t7607-merge-overwrite.sh
</content>
</entry>
</feed>
