<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/lib/commit.tcl, branch gitgui-0.11.0</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=gitgui-0.11.0</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=gitgui-0.11.0'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2008-02-04T02:25:29Z</updated>
<entry>
<title>git-gui: (i18n) Fix a bunch of still untranslated strings.</title>
<updated>2008-02-04T02:25:29Z</updated>
<author>
<name>Christian Stimming</name>
<email>stimming@tuhh.de</email>
</author>
<published>2008-02-02T09:20:17Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=5e6d7768e13088cc0082614fd106b327214fdc6d'/>
<id>urn:sha1:5e6d7768e13088cc0082614fd106b327214fdc6d</id>
<content type='text'>
Signed-off-by: Christian Stimming &lt;stimming@tuhh.de&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>git-gui: Consolidate hook execution code into a single function</title>
<updated>2008-01-21T03:45:38Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2008-01-20T19:46:59Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=ed76cb70f47225fc1a2ba4209b38b89be71adeb6'/>
<id>urn:sha1:ed76cb70f47225fc1a2ba4209b38b89be71adeb6</id>
<content type='text'>
The code we use to test if a hook is executable or not differs on
Cygwin from the normal POSIX case.  Rather then repeating that for
all three hooks we call in our commit code path we can place the
common logic into a global procedure and invoke it when necessary.

This also lets us get rid of the ugly "|&amp; cat" we were using before
as we can now rely on the Tcl 8.4 feature of "2&gt;@1" or fallback to
the "|&amp; cat" when necessary.

The post-commit hook is now run through the same API, but its outcome
does not influence the commit status.  As a result we now show any of
the errors from the post-commit hook in a dialog window, instead of on
the user's tty that was used to launch git-gui.  This resolves a long
standing bug related to not getting errors out of the post-commit hook
when launched under git-gui.

Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>git-gui: Honor the standard commit-msg hook</title>
<updated>2008-01-21T03:45:37Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2008-01-20T19:11:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=fb0ca475c6ab02eeeb8ca7f2c0558d64301a8800'/>
<id>urn:sha1:fb0ca475c6ab02eeeb8ca7f2c0558d64301a8800</id>
<content type='text'>
Under core Git the git-commit tool will invoke the commit-msg hook
if it exists and is executable to the user running git-commit.  As
a hook it has some limited value as it cannot alter the commit, but
it can modify the message the user is attempting to commit.  It is
also able to examine the message to ensure it conforms to some local
standards/conventions.

Since the hook takes the name of a temporary file holding the message
as its only parameter we need to move the code that creates the temp
file up earlier in our commit code path, and then pass through that
file name to the latest stage (where we call git-commit-tree).  We let
the hook alter the file as it sees fit and we don't bother to look at
its content again until the commit succeeded and we need the subject
for the reflog update.

Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>git-gui: Make commit log messages end with a newline</title>
<updated>2007-12-30T02:03:55Z</updated>
<author>
<name>Bernt Hansen</name>
<email>bernt@alumni.uwaterloo.ca</email>
</author>
<published>2007-12-28T02:15:56Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=a6d5888fa1bb24ef34ce36f0e684d13a58eba908'/>
<id>urn:sha1:a6d5888fa1bb24ef34ce36f0e684d13a58eba908</id>
<content type='text'>
Concatenating commit log messages from multiple commits works better
when all of the commits end with a clean line break.

Its good to be strict in what you create, and lenient in what you
accept, and since we're creating here, we should always try to
Do The Right Thing(tm).

Signed-off-by: Bernt Hansen &lt;bernt@alumni.uwaterloo.ca&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>git-gui: fix a typo in lib/commit.tcl</title>
<updated>2007-11-22T21:02:09Z</updated>
<author>
<name>Michele Ballabio</name>
<email>barra_cuda@katamail.com</email>
</author>
<published>2007-11-22T15:20:08Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=208320de8044acea5f637dd64475c3756d899094'/>
<id>urn:sha1:208320de8044acea5f637dd64475c3756d899094</id>
<content type='text'>
Signed-off-by: Michele Ballabio &lt;barra_cuda@katamail.com&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2007-10-21T00:43:36Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2007-10-21T00:43:36Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=c9dcc7f865fb7891f4f6d068230663eb2cb586a7'/>
<id>urn:sha1:c9dcc7f865fb7891f4f6d068230663eb2cb586a7</id>
<content type='text'>
* maint:
  git-gui: Don't display CR within console windows
  git-gui: Handle progress bars from newer gits
  git-gui: Correctly report failures from git-write-tree

Conflicts:

	lib/commit.tcl
	lib/console.tcl
</content>
</entry>
<entry>
<title>git-gui: Correctly report failures from git-write-tree</title>
<updated>2007-10-20T05:42:01Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2007-10-20T05:42:01Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=8af52d7a83a78c5f3a60d5bd5099a5073655339a'/>
<id>urn:sha1:8af52d7a83a78c5f3a60d5bd5099a5073655339a</id>
<content type='text'>
If git-write-tree fails (such as if the index file is currently
locked and it wants to write to it) we were not getting the error
message as $tree_id was always the empty string so we shortcut
through the catch and never got the output from stderr.

Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>git-gui: Paper bag fix missing translated strings</title>
<updated>2007-09-14T05:51:18Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2007-09-14T05:50:09Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=31bb1d1b2d1e893836b0d2b091fed9e39ee84853'/>
<id>urn:sha1:31bb1d1b2d1e893836b0d2b091fed9e39ee84853</id>
<content type='text'>
The Tcl expression "[append [mc Foo] Bar]" does not return the string
"FooBar" after translation; instead it is setting the variable Foo to
the value Bar, or if Foo is already defined it is appending Bar onto
the end of it.  This is *not* what we wanted to have happen here.

Tcl's join function is actually the correct function but its default
joinStr argument is a single space.  Unfortunately all of our call
sites do not want an extra space added to their string.  So we need
a small wrapper function to make the call to join with an empty
join string.  In C this is (roughly) the job of the strcat function.
Since strcat is not yet used at the global level it is a reasonable
name to use here.

Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>git-gui: add some strings to translation</title>
<updated>2007-09-14T00:43:26Z</updated>
<author>
<name>Michele Ballabio</name>
<email>barra_cuda@katamail.com</email>
</author>
<published>2007-09-13T13:19:05Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=c8c4854bec30b03b8e3a56a9b5e52ff358210140'/>
<id>urn:sha1:c8c4854bec30b03b8e3a56a9b5e52ff358210140</id>
<content type='text'>
Most of these changes were suggested by Shawn Pearce in an answer
to Johannes Schindelin.

Some strings for the blame module were added too.

[sp: Minor edits in blame module formatting]

Signed-off-by: Michele Ballabio &lt;barra_cuda@katamail.com&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>Mark strings for translation.</title>
<updated>2007-09-02T15:54:48Z</updated>
<author>
<name>Christian Stimming</name>
<email>chs@ckiste.goetheallee</email>
</author>
<published>2007-07-21T12:21:34Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=1ac17950e93a956d01b042db3de70010195eddcc'/>
<id>urn:sha1:1ac17950e93a956d01b042db3de70010195eddcc</id>
<content type='text'>
The procedure [mc ...] will translate the strings through msgcat.
Strings must be enclosed in quotes, not in braces, because otherwise
xgettext cannot extract them properly, although on the Tcl side both
delimiters would work fine.

[jes: I merged the later patches to that end.]

Signed-off-by: Christian Stimming &lt;stimming@tuhh.de&gt;
Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
</content>
</entry>
</feed>
