summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e35f982)
raw | patch | inline | side by side (parent: e35f982)
author | Petr Baudis <pasky@suse.cz> | |
Fri, 29 Jul 2005 09:00:45 +0000 (11:00 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 30 Jul 2005 00:21:49 +0000 (17:21 -0700) |
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>
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>
Documentation/git-write-tree.txt | patch | blob | history | |
git-merge-one-file-script | patch | blob | history | |
write-tree.c | patch | blob | history |
index 7f076b4198237d7ee22189716b052d78ffe8b6ee..3b6a66fef648eeeb2bf75c39af1670495eaffe88 100644 (file)
SYNOPSIS
--------
-'git-write-tree'
- [--missing-ok]
+'git-write-tree' [--missing-ok]
DESCRIPTION
-----------
index 9802f67032bde6bbd9edacb89f3a4acdf876deb9..be64c072862b5c5985fbe1495864b0c8d09391c0 100755 (executable)
#
"$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"
;;
#
# 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=$?
diff --git a/write-tree.c b/write-tree.c
index 561a101fa97c4fbf044093bdfe2cae56b94ce8bf..2b2c6b77afd53870423d4bad9191ed669bc55660 100644 (file)
--- a/write-tree.c
+++ b/write-tree.c
int entries = read_cache();
unsigned char sha1[20];
- if (argc==2) {
+ if (argc == 2) {
if (!strcmp(argv[1], "--missing-ok"))
missing_ok = 1;
else
die("unknown option %s", argv[1]);
}
- if (argc>2)
+ if (argc > 2)
die("too many options");
if (entries < 0)