Re: git: a8347f442824 - main - git-arc: Add a diff subcommand

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 17 Aug 2026 14:20:46 UTC
On 8/13/26 16:33, Devin Teske wrote:
> The branch main has been updated by dteske:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=a8347f44282408fb1a4c0aa611ecdf469bc030a8
> 
> commit a8347f44282408fb1a4c0aa611ecdf469bc030a8
> Author:     Devin Teske <dteske@FreeBSD.org>
> AuthorDate: 2026-08-13 20:31:36 +0000
> Commit:     Devin Teske <dteske@FreeBSD.org>
> CommitDate: 2026-08-13 20:31:36 +0000
> 
>      git-arc: Add a diff subcommand
>      
>      Show the differences between local commits and their associated
>      Phabricator reviews, i.e., what "git arc update" would upload.  For
>      each commit, the review's current raw diff is applied to the commit's
>      parent in a temporary index and the resulting tree is compared against
>      the commit itself.  An empty diff means the commit and the review are
>      in sync.
>      
>      This makes it easy to check whether local amendments have diverged
>      from the posted review before updating it, or to confirm that a
>      review is current before landing.
>      
>      Reviewed by:    markj
>      Differential Revision:  https://reviews.freebsd.org/D58789

Nice!  Something I would like is if we could have an indicator in `git arc list`
output if a local commit is out of date (that is, something like an extra column
that could hold a character like '!' if the commit has a local diff relative to
the current review).  Not sure how feasible that is to implement though.

-- 
John Baldwin