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

Re: git rebase stops on empty commits

From
Nanako Shiraishi <nanako3@lavabit.com>
Date
Jul 22, 2009, 22:08 UTC
Message-ID
<20090723070812.6117@nanako3.lavabit.com>
In-Reply-To
<loom.20090722T120617-839@post.gmane.org>
Quoting Mark Blakeney <markb@berlios.de>
> Surely something like an option --allow-empty on the rebase -i to skip over
> these no-brainer picks is trivial to implement - and makes sense? As a simple
> user, and knowing the original commits required --allow-empty, it was the first
> option I went looking for on the rebase -i when I encountered this problem.
I think an alternative is to use 'git rebase --skip'. I don't understand why you can't get rid of the commits that don't do anything and serve no purpose once and for all.
In your first message you only said 'for various reasons' and it isn't clear why you need such empty commits. Often people say they want to add a comment about the state of the tree with empty commits, but tags are designed for that purpose. Unlike some other systems a tag can have a message of its own.
-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
Previous: Mark BlakeneyNext: Mark Blakeney
Message 5 of 6 in “git rebase stops on empty commits”
  1. Mark BlakeneyJul 22, 2009
  2. Mark BlakeneyJul 22, 2009
  3. Peter KreftingJul 22, 2009
  4. Mark BlakeneyJul 22, 2009
  5. Nanako ShiraishiJul 22, 2009
  6. Mark BlakeneyJul 22, 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.