[vtk-developers] Viewing git history post modularization

Marcus D. Hanwell marcus.hanwell at kitware.com
Fri Apr 13 13:06:25 EDT 2012


On Fri, Apr 13, 2012 at 12:13 PM, Pat Marion <pat.marion at kitware.com> wrote:
> I found that you need to add an extra flag if you want to browse the history
> of a file.
>
> This will only show commits after modularization:
>
> git log Rendering/Core/vtkPolyDataMapper.cxx
>
>
> This will include commits prior to modularization:
>
> git log --follow Rendering/Core/vtkPolyDataMapper.cxx
>
>
> Works with gitk too, but gitk adds merge commits which are distracting.
>
We documented this in the commit you would normally hit, these
instructions should work and if you add --no-merges you should be able
to remove the merge commits too. We made the author VTK Developers to
make it clear that this was not a commit by a single developer to the
entire tree in much the same way as was done for ITK.
--
commit cdd4d6fdec8b4b2c143224ca1d94699c96a8b58a
Author: VTK Developers <vtk-developers at vtk.org>
Date:   Mon Apr 9 10:04:47 2012 -0400

    Modularize VTK tree layout

    Move source files from their former monolithic VTK location to their new
    location in modular VTK without modification.  This preserves enough
    information for "git blame -M" and "git log --follow" to connect
    modularized VTK files to their original location and history.



More information about the vtk-developers mailing list