{"thread":{"id":"16412","subject":"[TopGit PATCH] Add Vim modelines for consistent spacing","startedAt":"2008-11-20T13:59:04Z","lastAt":"2008-11-20T13:59:04Z","messageCount":1,"participants":["martin f. krafft"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"96246","messageId":"1227189544-29750-1-git-send-email-madduck@debian.org","threadId":"16412","inReplyTo":null,"subject":"[TopGit PATCH] Add Vim modelines for consistent spacing","fromName":"martin f. krafft","fromEmail":"madduck@debian.org","sentAt":"2008-11-20T13:59:04Z","receivedAt":"2008-11-20T13:59:04Z","isPatch":true,"sender":{"key":"madduck@debian.org","avatar":null},"body":"TopGit shell scripts use sw=8:ts=8:noet and to ensure that everyone complies,\nthese modelines configure Vim on open.\n\nSigned-off-by: martin f. krafft <madduck@debian.org>\n\n---\n create-help.sh |    1 +\n tg-create.sh   |    2 ++\n tg-delete.sh   |    2 ++\n tg-depend.sh   |    2 ++\n tg-export.sh   |    2 ++\n tg-import.sh   |    2 ++\n tg-info.sh     |    2 ++\n tg-mail.sh     |    2 ++\n tg-patch.sh    |    2 ++\n tg-remote.sh   |    2 ++\n tg-summary.sh  |    2 ++\n tg-update.sh   |    2 ++\n tg.sh          |    2 ++\n 13 files changed, 25 insertions(+), 0 deletions(-)\n\ndiff --git a/create-help.sh b/create-help.sh\nindex 766e8d4..8324b2a 100755\n--- a/create-help.sh\n+++ b/create-help.sh\n@@ -15,3 +15,4 @@ fi\n \t{ if (incommand) { print $0; } }\n '  > tg-\"$1\".txt\n \n+# vim:sw=8:ts=8:noet\ndiff --git a/tg-create.sh b/tg-create.sh\nindex 6ee3f02..677c19d 100644\n--- a/tg-create.sh\n+++ b/tg-create.sh\n@@ -141,3 +141,5 @@ git add -f \"$root_dir/.topmsg\"\n \n info \"Topic branch $name set up. Please fill .topmsg now and make initial commit.\"\n info \"To abort: git rm -f .top* && git checkout ${deps%% *} && $tg delete $name\"\n+\n+# vim:sw=8:ts=8:noet\ndiff --git a/tg-delete.sh b/tg-delete.sh\nindex 7f7ede7..37f4bac 100644\n--- a/tg-delete.sh\n+++ b/tg-delete.sh\n@@ -44,3 +44,5 @@ branch_empty \"$name\" || nonempty=1\n \n git update-ref -d \"refs/top-bases/$name\" \"$baserev\"\n git update-ref -d \"refs/heads/$name\" \"$branchrev\"\n+\n+# vim:sw=8:ts=8:noet\ndiff --git a/tg-depend.sh b/tg-depend.sh\nindex ff4541c..4539188 100644\n--- a/tg-depend.sh\n+++ b/tg-depend.sh\n@@ -47,3 +47,5 @@ echo \"$name\" >>\"$root_dir/.topdeps\"\n git add -f \"$root_dir/.topdeps\"\n git commit -m\"New TopGit dependency: $name\"\n $tg update\n+\n+# vim:sw=8:ts=8:noet\ndiff --git a/tg-export.sh b/tg-export.sh\nindex 52af88d..73a6ec8 100644\n--- a/tg-export.sh\n+++ b/tg-export.sh\n@@ -199,3 +199,5 @@ elif [ \"$driver\" = \"quilt\" ]; then\n \tdepcount=\"$(cat \"$output/series\" | wc -l)\"\n \techo \"Exported topic branch $name (total $depcount topics) to directory $output\"\n fi\n+\n+# vim:sw=8:ts=8:noet\ndiff --git a/tg-import.sh b/tg-import.sh\nindex b036b86..5c0484c 100644\n--- a/tg-import.sh\n+++ b/tg-import.sh\n@@ -116,3 +116,5 @@ do\n \t\tesac\n \tdone\n done\n+\n+# vim:sw=8:ts=8:noet\ndiff --git a/tg-info.sh b/tg-info.sh\nindex 9076247..6ae55c3 100644\n--- a/tg-info.sh\n+++ b/tg-info.sh\n@@ -73,3 +73,5 @@ else\n \techo \"Up-to-date.\"\n fi\n rm \"$depcheck\"\n+\n+# vim:sw=8:ts=8:noet\ndiff --git a/tg-mail.sh b/tg-mail.sh\nindex 7b8f7ff..4d23a0e 100644\n--- a/tg-mail.sh\n+++ b/tg-mail.sh\n@@ -55,3 +55,5 @@ people=\n eval git send-email $send_email_args \"$people\" \"$patchfile\"\n \n rm \"$patchfile\"\n+\n+# vim:sw=8:ts=8:noet\ndiff --git a/tg-patch.sh b/tg-patch.sh\nindex 97338ab..220a0b0 100644\n--- a/tg-patch.sh\n+++ b/tg-patch.sh\n@@ -44,3 +44,5 @@ echo '-- '\n echo \"tg: ($base_rev..) $name (depends on: $(git cat-file blob \"$name:.topdeps\" | paste -s -d' '))\"\n branch_contains \"$name\" \"$base_rev\" ||\n \techo \"tg: The patch is out-of-date wrt. the base! Run \\`$tg update\\`.\"\n+\n+# vim:sw=8:ts=8:noet\ndiff --git a/tg-remote.sh b/tg-remote.sh\nindex 4f60c73..2a9c4a0 100644\n--- a/tg-remote.sh\n+++ b/tg-remote.sh\n@@ -59,3 +59,5 @@ git for-each-ref \"refs/remotes/$name/top-bases\" |\n \n git config \"topgit.remote\" \"$name\"\n info \"The remote '$name' is now the default source of topic branches.\"\n+\n+# vim:sw=8:ts=8:noet\ndiff --git a/tg-summary.sh b/tg-summary.sh\nindex 3c90a6b..c165d19 100644\n--- a/tg-summary.sh\n+++ b/tg-summary.sh\n@@ -98,3 +98,5 @@ git for-each-ref refs/top-bases |\n if [ -n \"$graphviz\" ]; then\n \techo '}'\n fi\n+\n+# vim:sw=8:ts=8:noet\ndiff --git a/tg-update.sh b/tg-update.sh\nindex 040800d..1114b7d 100644\n--- a/tg-update.sh\n+++ b/tg-update.sh\n@@ -142,3 +142,5 @@ if ! git merge \"$merge_with\"; then\n \tfi\n \texit 3\n fi\n+\n+# vim:sw=8:ts=8:noet\ndiff --git a/tg.sh b/tg.sh\nindex 4dcc15e..137fef4 100644\n--- a/tg.sh\n+++ b/tg.sh\n@@ -283,3 +283,5 @@ help|--help|-h)\n \t}\n \t. \"@cmddir@\"/tg-$cmd;;\n esac\n+\n+# vim:sw=8:ts=8:noet\n-- \ntg: (f17218e..) features/vim-modelines (depends on: upstream)\n"}]}