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

Re: git rebase -i error message interprets \t in commit message

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
Aug 6, 2013, 16:01 UTC
Message-ID
<CALkWK0mg4FTONDieaaW+OV0cbUpzb46gj39NcNmBMXSyey_JKQ@mail.gmail.com>
In-Reply-To
<87k3jy6cyc.fsf@fencepost.gnu.org>
David Kastrup wrote:
> As you can see, the first message starting with "error: could not apply"
> outputs a reasonable rendition of the commit summary line.  However, the
> final "Could not apply" message (starting with a capital C) converts
> instances of \t to a tab.
To get you started:
  $ git grep "could not apply"
  sequencer.c=475=static int do_pick_commit(struct commit *commit,
  sequencer.c:628:                      : _("could not apply %s... %s"),
  $ git grep "Could not apply"
  git-rebase--interactive.sh=431=die_failed_squash() {
  git-rebase--interactive.sh:436: warn "Could not apply $1... $2"
  git-rebase--interactive.sh=460=do_pick () {
  git-rebase--interactive.sh:476: die_with_patch $1 "Could not apply $1... $2"
  git-rebase--interactive.sh:479: die_with_patch $1 "Could not apply $1... $2"

So, it's the shell script. Now, read about shell escaping [1] and submit a patch.

Thanks.
[1]: http://tldp.org/LDP/abs/html/escapingsection.html
Previous: David KastrupNext: Junio C Hamano
Message 2 of 14 in “git rebase -i error message interprets \t in commit message”
  1. David KastrupAug 6, 2013
  2. Ramkumar RamachandraAug 6, 2013
  3. Junio C HamanoAug 6, 2013
  4. Matthieu MoyAug 6, 2013
  5. David KastrupAug 6, 2013
  6. Matthieu MoyAug 6, 2013
  7. David KastrupAug 6, 2013
  8. Junio C HamanoAug 6, 2013
  9. Junio C HamanoAug 6, 2013
  10. die_with_status: use "printf '%s\n'", not "echo"Matthieu Moy, Aug 6, 2013
  11. Thomas RastAug 7, 2013
  12. Matthieu MoyAug 7, 2013
  13. die_with_status: use "printf '%s\n'", not "echo"Matthieu Moy, Aug 7, 2013
  14. Thomas RastAug 7, 2013

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.