Permalink
Browse files

Revert "Better behavior if nothing is to be added/removed (no 'git rm…

…' help output as before). I believe the 'git add' now is more clear, is there any drawback because of this change ? I think that there it isn't."

This commit did not work on OSX.

This reverts commit a79557f.
  • Loading branch information...
1 parent f63d962 commit c5285887b33f4e0e08cacb866260c15d514bc798 @ddollar committed Jun 3, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 git-addremove
View
@@ -1,3 +1,4 @@
-#!/usr/bin/env bash
-git add .
-git ls-files --deleted | xargs --no-run-if-empty git rm
+#!/bin/sh
+
+git add -A $@
+git ls-files --deleted -z $@ | xargs -0 git rm

0 comments on commit c528588

Please sign in to comment.