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

Re: git rebase -f --autosquash

From
Junio C Hamano <gitster@pobox.com>
Date
May 14, 2012, 16:35 UTC
Message-ID
<7vipfyiuv6.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1336820755.3002.11.camel@centaur.lab.cmartin.tk>
Carlos Martín Nieto <cmn@elego.de> writes:
Show 7 quoted lines
>     EDITOR=: git rebase -i @{u}
>
> and maybe set an alias (I have a 'riu' alias for 'rebase -i @{u}').
>
> I'm not saying an extra option wouldn't be useful, but there's already
> ways of making git not spawn a text editor which works for all commands,
> and you can even make an alias that will do precisely that.

Given "EDITOR=: git commit args..." and "EDITOR=: git merge args..." are equivalent to giving "--no-edit" option to these commands, I would imagine "git rebase opts... --no-editor args..." would not be such a stretch.

Previous: Carlos Martín NietoNext: Andy Kitchen
Message 3 of 8 in “git rebase -f --autosquash”
  1. Andy KitchenMay 12, 2012
  2. Carlos Martín NietoMay 12, 2012
  3. Junio C HamanoMay 14, 2012
  4. Andy KitchenMay 26, 2012
  5. Vincent van RavesteijnMay 26, 2012
  6. Junio C HamanoMay 27, 2012
  7. Phil HordJun 4, 2012
  8. Junio C HamanoJun 4, 2012

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.