From: Elijah Newren <firstname.lastname@example.org> To: Junio C Hamano <email@example.com> Cc: Elijah Newren via GitGitGadget <firstname.lastname@example.org>, Git Mailing List <email@example.com>, Phillip Wood <firstname.lastname@example.org>, Johannes Schindelin <Johannes.Schindelin@gmx.de>, Bryan Turner <email@example.com>, Sami Boukortt <firstname.lastname@example.org> Subject: Re: [PATCH v2 2/3] rebase: reinstate --no-keep-empty Date: Fri, 10 Apr 2020 14:41:41 -0700 [thread overview] Message-ID: <CABPp-BGUdUB2ePCWFvxFfnCTx3QBgvOH2pm-CZ9YvpM2Bt4qyg@mail.gmail.com> (raw) In-Reply-To: <email@example.com> On Fri, Apr 10, 2020 at 1:38 PM Junio C Hamano <firstname.lastname@example.org> wrote: > > "Elijah Newren via GitGitGadget" <email@example.com> writes: > > > That commit viewed this, though as > > turning that flag into a no-op. > > Sorry, but I do not understand this sentence. Hmm...it wouldn't hurt to just drop the two sentences with "no-op" in them. > > Provide users a way to drop commits which start empty using a flag that > > existed for years: --no-keep-empty. Interpret --keep-empty as > > countermanding any previous --no-keep-empty, but otherwise leaving > > --keep-empty as the default. > > But everything after that sentence down to here was very clear. :-) > > This might lead to some slight weirdness since commands like > > git rebase --empty=drop --keep-empty > > git rebase --empty=keep --no-keep-empty > > look really weird despite making perfect sense (the first will drop > > commits which become empty, but keep commits that started empty; the > > second will keep commits which become empty, but drop commits which > > started empty). > > That is true. Do we leave it to others (or our later selves) to > think about the UI further? That is fine by me, but in that case we > may want to add " We may want to rethink the option names later", > perhaps? The names might not be great, but since --no-keep-empty and --keep-empty already existed for years and prior to 2.16 and were about how to handle commits which started empty, it seemed reasonable to (re)use them. My personal preference would be that for commits whose keep/drop state can be determined solely by looking at its contents of the commit before the rebase (whether that's because they start empty or for whatever other reasons), I'd rather recommend that people just fire up an interactive rebase and pick out the commits they don't want to keep. So, my own bias would be that I wouldn't recommend that new people use either --keep-empty or --no-keep-empty. In my mind, the --[no-]keep-empty flags are just for backward compatibility, so going through effort to rename or alias doesn't seem like it makes a lot of sense. I don't have a strongly held position here and I'm happy to hear alternate viewpoints, but that's the thought process I went through when creating this change. > > +--no-keep-empty:: > > --keep-empty:: > > + Do not keep commits that start empty before the rebase > > + (i.e. that do not change anything from its parent) in the > > + result. For commits which become empty after rebasing, see > > + the --empty and --keep-cherry-pick flags. > > keep-cherry-pick will appear later, not here, right? --keep-cherry-pick is the new flag added by jt/rebase-allow-duplicate. I guess I should technically probably wait until I create a commit on top of that series and this one to mention it. Or rebase Jonathan's commit, and combine the two series (adding his second since mine might be viewed as a bugfix).
next prev parent reply other threads:[~2020-04-10 21:41 UTC|newest] Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-04-09 23:26 [PATCH] rebase -i: mark commits that begin empty in todo editor Elijah Newren via GitGitGadget 2020-04-10 0:50 ` Junio C Hamano 2020-04-10 2:06 ` Bryan Turner 2020-04-10 4:57 ` Junio C Hamano 2020-04-10 17:51 ` [PATCH v2 0/3] " Elijah Newren via GitGitGadget 2020-04-10 17:51 ` [PATCH v2 1/3] " Elijah Newren via GitGitGadget 2020-04-10 17:51 ` [PATCH v2 2/3] rebase: reinstate --no-keep-empty Elijah Newren via GitGitGadget 2020-04-10 20:37 ` Junio C Hamano 2020-04-10 21:41 ` Elijah Newren [this message] 2020-04-10 17:51 ` [PATCH v2 3/3] rebase: fix an incompatible-options error message Elijah Newren via GitGitGadget 2020-04-10 20:42 ` [PATCH v2 0/3] rebase -i: mark commits that begin empty in todo editor Junio C Hamano 2020-04-10 21:04 ` Junio C Hamano 2020-04-10 21:14 ` Junio C Hamano 2020-04-10 22:11 ` Elijah Newren 2020-04-10 21:29 ` Junio C Hamano 2020-04-10 22:13 ` Elijah Newren 2020-04-10 22:30 ` Junio C Hamano 2020-04-11 0:07 ` Elijah Newren 2020-04-11 21:14 ` Junio C Hamano 2020-04-11 2:44 ` [PATCH v3 0/4] " Elijah Newren via GitGitGadget 2020-04-11 2:44 ` [PATCH v3 1/4] " Elijah Newren via GitGitGadget 2020-04-15 20:52 ` Junio C Hamano 2020-04-11 2:44 ` [PATCH v3 2/4] rebase: reinstate --no-keep-empty Elijah Newren via GitGitGadget 2020-04-11 2:44 ` [PATCH v3 3/4] rebase: fix an incompatible-options error message Elijah Newren via GitGitGadget 2020-04-11 2:44 ` [PATCH v3 4/4] rebase --merge: optionally skip upstreamed commits Jonathan Tan via GitGitGadget 2020-04-11 18:12 ` Jonathan Tan 2020-04-14 9:11 ` [PATCH v3 0/4] rebase -i: mark commits that begin empty in todo editor Phillip Wood
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: http://vger.kernel.org/majordomo-info.html * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=CABPp-BGUdUB2ePCWFvxFfnCTx3QBgvOH2pm-CZ9YvpM2Bt4qyg@mail.gmail.com \ --firstname.lastname@example.org \ --cc=Johannes.Schindelin@gmx.de \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --subject='Re: [PATCH v2 2/3] rebase: reinstate --no-keep-empty' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Code repositories for project(s) associated with this inbox: https://80x24.org/mirrors/git.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).