summaryrefslogtreecommitdiff
path: root/git-merge-one-file-script
diff options
context:
space:
mode:
authorPetr Baudis <pasky@suse.cz>2005-07-29 09:00:45 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-07-30 00:21:49 (GMT)
commit0b124bb4bf8eafae8a4eae9c1fc44bf63da2e62e (patch)
treeed6d339f657c4d98fb06244941acd4faa90b0d60 /git-merge-one-file-script
parente35f9824159bba94eecdf22d198799701ed60940 (diff)
downloadgit-0b124bb4bf8eafae8a4eae9c1fc44bf63da2e62e.zip
git-0b124bb4bf8eafae8a4eae9c1fc44bf63da2e62e.tar.gz
git-0b124bb4bf8eafae8a4eae9c1fc44bf63da2e62e.tar.bz2
[PATCH] Trivial tidyups
Simple whitespace-related tidyups ensuring style consistency. This is carried over from my old git-pb branch. Signed-off-by: Petr Baudis <pasky@ucw.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-merge-one-file-script')
-rwxr-xr-xgit-merge-one-file-script7
1 files changed, 3 insertions, 4 deletions
diff --git a/git-merge-one-file-script b/git-merge-one-file-script
index 9802f67..be64c07 100755
--- a/git-merge-one-file-script
+++ b/git-merge-one-file-script
@@ -22,11 +22,10 @@ case "${1:-.}${2:-.}${3:-.}" in
#
"$1.." | "$1.$1" | "$1$1.")
echo "Removing $4"
- if test -f "$4"
- then
+ if test -f "$4"; then
rm -f -- "$4"
fi &&
- exec git-update-cache --remove -- "$4"
+ exec git-update-cache --remove -- "$4"
;;
#
@@ -62,7 +61,7 @@ case "${1:-.}${2:-.}${3:-.}" in
# We reset the index to the first branch, making
# git-diff-file useful
- git-update-cache --add --cacheinfo "$6" "$2" "$4"
+ git-update-cache --add --cacheinfo "$6" "$2" "$4"
git-checkout-cache -u -f -- "$4" &&
merge "$4" "$orig" "$src2"
ret=$?