Web Developer Extraordinaire!
RSS icon Email icon Home icon
  • List the files changed using Git and Textmate

    Posted on August 3rd, 2010 No comments

    Here’s a little workflow I thought I’d share for when I want to see all the files changed during a commit range:

    Requires: git, Textmate, and Mac OS X (of course)


    git show --pretty="format:" --name-only [SHA range, (e.g. 7c98847..f8fa22d)] > ~/Desktop/changed_files.txt
    mate ~/Desktop/changed_files.txt

    When Textmate opens:

    1. Select All Text
    2. Bundles > Text > Sorting > Sort Lines & Remove Duplicates

    Related posts:

    Leave a reply