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

Re: [PATCH v4] commit: add a commit.allowEmpty config variable

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 15, 2018, 16:16 UTC
Message-ID
<nycvar.QRO.7.76.6.1811151713530.41@tvgsbejvaqbjf.bet>
In-Reply-To
<20181115094101.GA15279@sigill.intra.peff.net>
Hi Peff,
On Thu, 15 Nov 2018, Jeff King wrote:
Show 28 quoted lines
> On Thu, Nov 15, 2018 at 09:40:38AM +0100, Johannes Schindelin wrote:
> 
> > From @chucklu:
> > 
> > > my user case is like this :
> > >
> > > When I want to cherr-pick commits from A to G (ABCDEFG), image C and E
> > > are merge commits.  Then I will get lots of popup like:
> > >
> > >    The previous cherry-pick is now empty, possibly due to conflict
> > >    resolution.
> > >    If you wish to commit it anyway, use:
> > >
> > >        git commit --allow-empty
> > >
> > >    If you wish to skip this commit, use:
> > >
> > >        git reset
> > >
> > >    Then "git cherry-pick --continue" will resume cherry-picking
> > >    the remaining commits.
> > 
> > My quick interpretation of this is that the user actually needs a way to
> > skip silently commits which are now empty.
> 
> If it's always intended to be used with cherry-pick, shouldn't
> cherry-pick learn a --keep-empty (like rebase has)? That would avoid
> even stopping for this case in the first place.
I'd go for the other way round: --skip-empty.

However, given the very unhappy turn in that Git for Windows ticket (somebody asks for a feature, then just sits back, and does not even confirm that the analysis covers their use case, let alone participates in this discussion), I am personally not really interested in driving this one any further.

Tanushree proved that they know how to contribute to the Git mailing list, as a pre-requisite for the Outreachy project, and that is the positive outcome of this thread as far as I am concerned. I am pretty happy about that, too.

Ciao, Dscho

Previous: Jeff King
Message 14 of 14 in “commit: add a commit.allowEmpty config variable”
  1. commit: add a commit.allowEmpty config variabletanushree27, Nov 3, 2018
  2. ] commit: add a commit.allowempty config variabletanushree27, Nov 3, 2018
  3. Duy NguyenNov 3, 2018
  4. commit: add a commit.allowEmpty config variabletanushree27, Nov 3, 2018
  5. Ævar Arnfjörð BjarmasonNov 3, 2018
  6. Junio C HamanoNov 5, 2018
  7. commit: add a commit.allowEmpty config variableTanushree Tumane, Nov 13, 2018
  8. Johannes SchindelinNov 13, 2018
  9. Ævar Arnfjörð BjarmasonNov 13, 2018
  10. Junio C HamanoNov 14, 2018
  11. Johannes SchindelinNov 14, 2018
  12. Johannes SchindelinNov 15, 2018
  13. Jeff KingNov 15, 2018
  14. Johannes SchindelinNov 15, 2018

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.