From c4c57a55aa1b825109f0ce0547994ad394812902 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 20 Nov 2008 15:46:05 +0100 Subject: [PATCH] Add Vim modelines for consistent spacing TopGit shell scripts use tabs and this commit instructs Vim via modeline not to expand tabs. Signed-off-by: martin f. krafft Acked-by: Petr Baudis --- create-help.sh | 1 + tg-create.sh | 2 ++ tg-delete.sh | 2 ++ tg-depend.sh | 2 ++ tg-export.sh | 2 ++ tg-import.sh | 2 ++ tg-info.sh | 2 ++ tg-mail.sh | 2 ++ tg-patch.sh | 2 ++ tg-remote.sh | 2 ++ tg-summary.sh | 2 ++ tg-update.sh | 2 ++ tg.sh | 2 ++ 13 files changed, 25 insertions(+) diff --git a/create-help.sh b/create-help.sh index 766e8d4..fbd9a09 100755 --- a/create-help.sh +++ b/create-help.sh @@ -15,3 +15,4 @@ fi { if (incommand) { print $0; } } ' > tg-"$1".txt +# vim:noet diff --git a/tg-create.sh b/tg-create.sh index 6ee3f02..6e84907 100644 --- a/tg-create.sh +++ b/tg-create.sh @@ -141,3 +141,5 @@ git add -f "$root_dir/.topmsg" info "Topic branch $name set up. Please fill .topmsg now and make initial commit." info "To abort: git rm -f .top* && git checkout ${deps%% *} && $tg delete $name" + +# vim:noet diff --git a/tg-delete.sh b/tg-delete.sh index 7f7ede7..ab121c2 100644 --- a/tg-delete.sh +++ b/tg-delete.sh @@ -44,3 +44,5 @@ branch_empty "$name" || nonempty=1 git update-ref -d "refs/top-bases/$name" "$baserev" git update-ref -d "refs/heads/$name" "$branchrev" + +# vim:noet diff --git a/tg-depend.sh b/tg-depend.sh index ff4541c..ef5f94f 100644 --- a/tg-depend.sh +++ b/tg-depend.sh @@ -47,3 +47,5 @@ echo "$name" >>"$root_dir/.topdeps" git add -f "$root_dir/.topdeps" git commit -m"New TopGit dependency: $name" $tg update + +# vim:noet diff --git a/tg-export.sh b/tg-export.sh index 52af88d..90a76d5 100644 --- a/tg-export.sh +++ b/tg-export.sh @@ -199,3 +199,5 @@ elif [ "$driver" = "quilt" ]; then depcount="$(cat "$output/series" | wc -l)" echo "Exported topic branch $name (total $depcount topics) to directory $output" fi + +# vim:noet diff --git a/tg-import.sh b/tg-import.sh index b036b86..a8d3be5 100644 --- a/tg-import.sh +++ b/tg-import.sh @@ -116,3 +116,5 @@ do esac done done + +# vim:noet diff --git a/tg-info.sh b/tg-info.sh index 9076247..7d6a34c 100644 --- a/tg-info.sh +++ b/tg-info.sh @@ -73,3 +73,5 @@ else echo "Up-to-date." fi rm "$depcheck" + +# vim:noet diff --git a/tg-mail.sh b/tg-mail.sh index 7b8f7ff..f5c0cf4 100644 --- a/tg-mail.sh +++ b/tg-mail.sh @@ -55,3 +55,5 @@ people= eval git send-email $send_email_args "$people" "$patchfile" rm "$patchfile" + +# vim:noet diff --git a/tg-patch.sh b/tg-patch.sh index 97338ab..a704375 100644 --- a/tg-patch.sh +++ b/tg-patch.sh @@ -44,3 +44,5 @@ echo '-- ' echo "tg: ($base_rev..) $name (depends on: $(git cat-file blob "$name:.topdeps" | paste -s -d' '))" branch_contains "$name" "$base_rev" || echo "tg: The patch is out-of-date wrt. the base! Run \`$tg update\`." + +# vim:noet diff --git a/tg-remote.sh b/tg-remote.sh index 4f60c73..c3e8bd3 100644 --- a/tg-remote.sh +++ b/tg-remote.sh @@ -59,3 +59,5 @@ git for-each-ref "refs/remotes/$name/top-bases" | git config "topgit.remote" "$name" info "The remote '$name' is now the default source of topic branches." + +# vim:noet diff --git a/tg-summary.sh b/tg-summary.sh index 3c90a6b..870fcf4 100644 --- a/tg-summary.sh +++ b/tg-summary.sh @@ -98,3 +98,5 @@ git for-each-ref refs/top-bases | if [ -n "$graphviz" ]; then echo '}' fi + +# vim:noet diff --git a/tg-update.sh b/tg-update.sh index 040800d..288ec14 100644 --- a/tg-update.sh +++ b/tg-update.sh @@ -142,3 +142,5 @@ if ! git merge "$merge_with"; then fi exit 3 fi + +# vim:noet diff --git a/tg.sh b/tg.sh index 1fe0115..d8b6213 100644 --- a/tg.sh +++ b/tg.sh @@ -298,3 +298,5 @@ help|--help|-h) } . "@cmddir@"/tg-$cmd;; esac + +# vim:noet -- 2.30.2