Re: [PATCH] checkout: add --autostash option for branch switching
- From
Harald Nordgren <haraldnordgren@gmail.com>
- Date
- Apr 16, 2026, 10:05 UTC
- Message-ID
- <20260416100556.27823-1-haraldnordgren@gmail.com>
- In-Reply-To
- <xmqqfr4xcz7s.fsf@gitster.g>
Show 12 quoted lines
> It shows 350+ lines of range-diff to show mostly irrelevant noise,
> when the true difference between v11 and v12 is only that two helper
> functions create_autostash_ref_silent{,_with_msg}() are merged into
> one create_autostash_ref_with_msg_silent() helper function.
>
> It is much easier to read that read from the diff between the
> results of applying v11 and v12 on the same base commit, which is a
> mere 55 lines (shown at the end).
>
> I would not expect you to teach GGG to produce a better range-diff
> or add an option to instead show an interdiff, but doesn't GGG
> already have a way to add some human-written commentI will work on my cover letters, that's a very fair point.
I do think there is some possibility to handle this via maybe a new option 'git range-diff --rebase', or directly via GitGitGadget. This would automatically create a diff with only the files actually changed, which saves both author's and reviewer's time.
Perhaps this: https://github.com/gitgitgadget/gitgitgadget/pull/2212
Harald