From: Samuel Lijin Date: Wed, 17 May 2017 21:17:21 GMT Subject: Re: Diff topic branch + working copy changes? Message-ID: In-Reply-To: On Wed, May 17, 2017 at 9:39 AM, Robert Dailey wrote: > > Would be nice in the future to have another revision specification > like @{wc} for "HEAD + working copy". I guess this technically isn't a > revision, but something along those lines. Or maybe just an > --include-wc for diff or something. I think the spec would *just* be the working tree, if it ever got implemented - I don't think it makes much sense to say "HEAD + working copy". Maybe something like this would do what you want? # Diff Merge Base dmb = "!f() { : git diff ; ref=$(git rev-parse --abbrev-ref HEAD); git reset --soft $(git merge-base @{upstream} HEAD); git diff; git reset --soft \"$ref\"; }; f"