Skip to content

Commit

Permalink
Touch multiple files supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
al-the-x committed Dec 28, 2015
1 parent 3c874ce commit 64639e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/git-touch
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ test $# -lt 1 && echo "filename required" 1>&2 && exit 1

filenames="$@"

touch "$filenames" \
&& git add "$filenames"
for filename in $@; do
touch "$filename" \
&& git add "$filename"
done

0 comments on commit 64639e1

Please sign in to comment.