threads / discuss / 28693

Higher-level change review?

Subject: Higher-level change review?

## tl;dr

3 messages between Oct 16, 2011 and Oct 16, 2011.

replies: 2people: 3as markdown or json

Dave Abrahams· Oct 16, 2011, 14:31 UTC · lore

I've been working on a fairly large Org outline and also merging upstream code changes in a project that does a lot of refactoring, and I've discovered that Git's diff format is poorly-suited to reviewing the kinds of structural modifications I often deal with, where indentation changes and large parts of documents are reorganized. Are there better ways to review, stage, etc. this kind of change than by using straight-ahead diffs? And, for the magit list, has anyone integrated an improved review capability with magit?

Hints most appreciated,
-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com
Tay Ray Chuan· Oct 16, 2011, 15:05 UTC · lore

Re: Higher-level change review?

On Sun, Oct 16, 2011 at 10:31 PM, Dave Abrahams <dave-xT6NqnoQrPdWk0Htik3J/w@public.gmane.org> wrote:
> I've discovered that Git's diff format is poorly-suited to reviewing the
> kinds of structural modifications I often deal with, where indentation
> changes and large parts of documents are reorganized.
Something off the top of my head:
  git (diff|show) -w
?
-- 
Cheers,
Ray Chuan
Jakub Narebski· Oct 16, 2011, 18:03 UTC · lore

Re: Higher-level change review?

[Sending via email, not via GMane; sorry if you got duplications]
Tay Ray Chuan writes:
Show 9 quoted lines
> On Sun, Oct 16, 2011 at 10:31 PM, Dave Abrahams wrote:
> >
> > I've discovered that Git's diff format is poorly-suited to reviewing the
> > kinds of structural modifications I often deal with, where indentation
> > changes and large parts of documents are reorganized.
> 
> Something off the top of my head:
> 
>   git (diff|show) -w

While -w, --ignore-all-space (and its lesser variant -b, --ignore-space-change) are nice and good, they cannot deal with code movement.

I have saved somewhere a shell script involving "git blame -w -C -C HEAD^.." plus some filtering to see what changed beside reordering... but I seem to have it misplaced.

Found it:
From: Junio C Hamano <gitster-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>
http://permalink.gmane.org/gmane.comp.version-control.git/174966
http://thread.gmane.org/gmane.comp.version-control.git/174954/focus=174966
JH>
JH> "git blame" tip of the day. After applying a series like this on a topic
JH> branch, running
JH>
JH>   $ git blame -C master.. -- gitweb/INSTALL | grep -C 3 -e '^[^^]' | less -S
JH>
JH> lets us view the lines without drowning in the bulk of lines that were
JH> merely moved.
HTH
-- 
Jakub Narębski

← back to recent threads