# Higher-level change review?

3 messages from 2011-10-16 to 2011-10-16. Participants: Dave Abrahams, Tay Ray Chuan, Jakub Narebski.
Thread: https://gitlist.dev/t/28693

## Dave Abrahams, 2011-10-16 14:31

Subject: Higher-level change review?
Message-ID: <m27h450zzc.fsf@pluto.luannocracy.com>
URL: https://gitlist.dev/e/m27h450zzc.fsf%40pluto.luannocracy.com

```

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, 2011-10-16 15:05

Subject: Re: Higher-level change review?
Message-ID: <CALUzUxpr4FhjJ8OpYcpZOJLZuvveBNzKWd7soY6LQrz0Do1TDg@mail.gmail.com>
URL: https://gitlist.dev/e/CALUzUxpr4FhjJ8OpYcpZOJLZuvveBNzKWd7soY6LQrz0Do1TDg%40mail.gmail.com
In-Reply-To: <m27h450zzc.fsf-NtBv8x4kbP9fRAUK6RR3EeqUGfbH9hYC@public.gmane.org>

```
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, 2011-10-16 18:03

Subject: Re: Higher-level change review?
Message-ID: <m3hb387r2l.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m3hb387r2l.fsf%40localhost.localdomain
In-Reply-To: <CALUzUxpr4FhjJ8OpYcpZOJLZuvveBNzKWd7soY6LQrz0Do1TDg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

```
[Sending via email, not via GMane; sorry if you got duplications]

Tay Ray Chuan writes:
> 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

```
