git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCHv3 0/2] Add a "fixup" command to "rebase --interactive"

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 7, 2009, 11:21 UTC
Message-ID
<alpine.DEB.1.00.0912071220430.4985@pacific.mpi-cbg.de>
In-Reply-To
<cover.1260177312.git.mhagger@alum.mit.edu>
Hi,
On Mon, 7 Dec 2009, Michael Haggerty wrote:
Show 25 quoted lines
> Junio C Hamano wrote:
> > Michael Haggerty <mhagger@alum.mit.edu> writes:
> > 
> >> diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
> >> index 0bd3bf7..a7de5ea 100755
> >> --- a/git-rebase--interactive.sh
> >> +++ b/git-rebase--interactive.sh
> >> @@ -302,7 +302,13 @@ nth_string () {
> >>  
> >>  make_squash_message () {
> >>  	if test -f "$SQUASH_MSG"; then
> >> -		COUNT=$(($(sed -n "s/^# This is [^0-9]*\([1-9][0-9]*\).*/\1/p" \
> >> +		# We want to be careful about matching only the commit
> >> +		# message comment lines generated by this function.
> > 
> >> +		# But supposedly some sed versions don't handle "\|"
> >> +		# correctly, so instead of "\(st\|nd\|rd\|th\)", use
> >> +		# the less accurate "[snrt][tdh]" to match the
> >> +		# nth_string endings.
> > 
> > I'd drop this comment; blaming POSIX-compliant sed without GNU extension
> > is simply wrong.
> 
> Fair enough.  I hope you don't mind my leaving a line explaining the
> cryptic "[snrt][tdh]" to save Dscho a couple of seconds next time :-).
Thanks, very much appreciated here.
My ACK for the patches is still valid.
Previous: Michael HaggertyNext: Michael Haggerty
Message 6 of 13 in “[PATCHv2 0/2] Add a "fixup" command to "rebase --interactive"”
  1. Michael HaggertyDec 7, 2009
  2. 1/2 t3404: Use test_commit to set up test repositoryMichael Haggerty, Dec 7, 2009
  3. 2/2 Add a command "fixup" to rebase --interactiveMichael Haggerty, Dec 7, 2009
  4. Junio C HamanoDec 7, 2009
  5. 0/2 Add a "fixup" command to "rebase --interactive"Michael Haggerty, Dec 7, 2009
  6. Johannes SchindelinDec 7, 2009
  7. 1/2 t3404: Use test_commit to set up test repositoryMichael Haggerty, Dec 7, 2009
  8. Junio C HamanoDec 8, 2009
  9. 2/2 Add a command "fixup" to rebase --interactiveMichael Haggerty, Dec 7, 2009
  10. Sverre RabbelierDec 7, 2009
  11. Michael HaggertyDec 7, 2009
  12. Matthieu MoyDec 7, 2009
  13. Sverre RabbelierDec 7, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.