Permalink
Browse files

+git-nows

  • Loading branch information...
1 parent 7d0da44 commit 886ab57f829ef2424e5c2883bb6b0c7c3429402b @ConradIrwin ConradIrwin committed Feb 25, 2011
Showing with 11 additions and 0 deletions.
  1. +4 −0 README.markdown
  2. +7 −0 bin/git-nows
View
@@ -27,6 +27,10 @@ Shortcut for using `git difftool` to view the changes in a single commit.
Merges a feature branch into the current branch, then deletes the feature
branch.
+## git-nows ##
+Remove all the "bad whitespace" (as defined by git) from your uncommitted
+changes.
+
## git-pdf ##
Given the name of a feature branch, builds a beautifully syntax-highlit PDF
file containing all commits on that feature branch since it diverged from
View
@@ -0,0 +1,7 @@
+#!/bin/bash
+# git-nows removes any un-added whitespace errors from your working tree.
+FILE=`tempfile`
+git diff "$@" > $FILE
+git unapply $FILE
+git apply $FILE --whitespace=fix
+rm $FILE

0 comments on commit 886ab57

Please sign in to comment.