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

Re: [GSoC] Some #leftoverbits for anyone looking for little projects

From
Matheus Tavares Bernardino <matheus.bernardino@usp.br>
Date
May 21, 2019, 04:38 UTC
Message-ID
<CAHd-oW5BfECXuxZaO+tdEAZUBvGwtkP6WbxDw7PMJgFuZ8sYRw@mail.gmail.com>
In-Reply-To
<87d0kcvg8n.fsf@evledraar.gmail.com>

On Mon, May 20, 2019 at 8:49 PM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:

Show 30 quoted lines
>
>
> On Mon, May 20 2019, Matheus Tavares wrote:
>
> > Hi, Ævar
> >
> >> Give "rebase -i" some option so when you "reword" the patch is
> >> included in the message.
> >>
> >> I keep going to the shell because I have no idea what change I'm
> >> describing.
> >
> > I have the same problem, so I wanted to try solving this. The patch
> > bellow creates a "rebase.verboseCommit" configuration that includes
> > a diff when rewording or squashing. I'd appreciate knowing your thoughts
> > on it.
> >
> > As Christian wisely pointed out to me, though, we can also achieve this
> > behavior by setting "commit.verbose" to true. The only "downside" of it
> > is that users cannot choose to see the diff only when rebasing. Despite
> > of that, if we decide not to go with this patch, what do you think of
> > adding a "commit.verbose" entry at git-rebase's man page?
>
> Thanks for working on this. I'd somehow missed the addition of the
> commit.verbose option, so the problem I had is 100% solved by it (and
> I've turned it on).
>
> I think it's better to just document it with rebase, perhaps rather than
> mention that option specifically (but that would also be fine) promise
> that we support "commit" options in general.
Indeed, it seems to be the right way to go.
> Do we promise anywhere that interactive rebase is going to run the
> "normal" git-commit command. From a quick skimming of the docs it
> doesn't seem so, perhaps we should explicitly promise that, and then
> test for it if we don't (e.g. by stealing the tests you added).

Ok, sounds good to me. In order to avoid duplicate tests, is it OK to assume that if one commit configuration is being respected by rebase, then all will be? Or should a patch adding such a promise include rebase tests for all commit.* configurations?

Previous: Ævar Arnfjörð BjarmasonNext: Johannes Schindelin
Message 4 of 13 in “[GSoC] Some #leftoverbits for anyone looking for little projects”
  1. Ævar Arnfjörð BjarmasonMar 17, 2018
  2. Matheus TavaresMay 20, 2019
  3. Ævar Arnfjörð BjarmasonMay 20, 2019
  4. Matheus Tavares BernardinoMay 21, 2019
  5. Johannes SchindelinMay 28, 2019
  6. Matheus Tavares BernardinoMay 28, 2019
  7. Johannes SchindelinMay 28, 2019
  8. Johannes SchindelinMay 29, 2019
  9. Johannes SchindelinMay 29, 2019
  10. Jayati ShrivastavaMar 20, 2022
  11. Christian CouderMar 22, 2022
  12. Ævar Arnfjörð BjarmasonMar 22, 2022
  13. Jayati ShrivastavaMar 23, 2022

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.