From b054db49650d11783ef02e97f136ce0e0f0c8da1 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 9 Jul 2010 16:49:24 -0400 Subject: Add comment and license --- bin/git-un-diff-whitespace | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/git-un-diff-whitespace b/bin/git-un-diff-whitespace index 6338a47..4e71f04 100755 --- a/bin/git-un-diff-whitespace +++ b/bin/git-un-diff-whitespace @@ -1,5 +1,13 @@ #!/usr/bin/python +# Strip trailing whitespace ONLY in modified sections in the latest commit. +# Usage: +# +# $ git commit +# $ git un-diff-whitespace +# Copyright 2010 Colin Walters +# Licensed under the new-BSD license (http://www.opensource.org/licenses/bsd-license.php) + import os,sys,re,subprocess hunk_re = re.compile(r'^@@ -\d+,\d+ \+(\d+),(\d+) @@') -- cgit