summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 869d588)
raw | patch | inline | side by side (parent: 869d588)
author | Junio C Hamano <gitster@pobox.com> | |
Tue, 6 Jul 2010 05:16:15 +0000 (22:16 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 6 Jul 2010 06:22:52 +0000 (23:22 -0700) |
Case arms should align with "case" and "esac".
Do not cat a file into a pipeline; just make the downstream command
read from the file.
Having a while statement as a downstream of a pipe is fine, but
the loop should begin on its own line.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Do not cat a file into a pipeline; just make the downstream command
read from the file.
Having a while statement as a downstream of a pipe is fine, but
the loop should begin on its own line.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-rebase--interactive.sh | patch | blob | history |
index 6b86abc64bfe0034caf23cf9530955128766de32..ed57552b7ece38a235043a7aa03a0a413fc41c5f 100755 (executable)
then
if test "$fast_forward" = t
then
- cat "$DOTEST"/current-commit | while read current_commit
+ while read current_commit
do
git rev-parse HEAD > "$REWRITTEN"/$current_commit
- done
+ done <"$DOTEST"/current-commit
rm "$DOTEST"/current-commit ||
die "Cannot write current commit's replacement sha1"
fi
echo "$oldsha1" >> "$REWRITTEN_PENDING"
case "$(peek_next_command)" in
- squash|s|fixup|f)
+ squash|s|fixup|f)
;;
- *)
+ *)
flush_rewritten_pending
;;
esac
git rev-list $MERGES_OPTION --pretty=oneline --abbrev-commit \
--abbrev=7 --reverse --left-right --topo-order \
$REVISIONS | \
- sed -n "s/^>//p" | while read shortsha1 rest
+ sed -n "s/^>//p" |
+ while read shortsha1 rest
do
if test t != "$PRESERVE_MERGES"
then