Add force option
This commit is contained in:
@@ -19,7 +19,8 @@ EOF
|
||||
}
|
||||
|
||||
add() {
|
||||
find $INPUT_PATH -name "$INPUT_PATTERN" | while read x; do git add $x; done
|
||||
if $INPUT_FORCE find $INPUT_PATH -name "$INPUT_PATTERN" | while read x; do git add -f $x; done
|
||||
else find $INPUT_PATH -name "$INPUT_PATTERN" | while read x; do git add $x; done
|
||||
}
|
||||
|
||||
# This is needed to make the check work for untracked files
|
||||
|
||||
Reference in New Issue
Block a user