[TopGit PATCH] Add Vim modelines for consistent spacing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



TopGit shell scripts use sw=8:ts=8:noet and to ensure that everyone complies,
these modelines configure Vim on open.

Signed-off-by: martin f. krafft <madduck@xxxxxxxxxx>

---
 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(+), 0 deletions(-)

diff --git a/create-help.sh b/create-help.sh
index 766e8d4..8324b2a 100755
--- a/create-help.sh
+++ b/create-help.sh
@@ -15,3 +15,4 @@ fi
 	{ if (incommand) { print $0; } }
 '  > tg-"$1".txt
 
+# vim:sw=8:ts=8:noet
diff --git a/tg-create.sh b/tg-create.sh
index 6ee3f02..677c19d 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:sw=8:ts=8:noet
diff --git a/tg-delete.sh b/tg-delete.sh
index 7f7ede7..37f4bac 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:sw=8:ts=8:noet
diff --git a/tg-depend.sh b/tg-depend.sh
index ff4541c..4539188 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:sw=8:ts=8:noet
diff --git a/tg-export.sh b/tg-export.sh
index 52af88d..73a6ec8 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:sw=8:ts=8:noet
diff --git a/tg-import.sh b/tg-import.sh
index b036b86..5c0484c 100644
--- a/tg-import.sh
+++ b/tg-import.sh
@@ -116,3 +116,5 @@ do
 		esac
 	done
 done
+
+# vim:sw=8:ts=8:noet
diff --git a/tg-info.sh b/tg-info.sh
index 9076247..6ae55c3 100644
--- a/tg-info.sh
+++ b/tg-info.sh
@@ -73,3 +73,5 @@ else
 	echo "Up-to-date."
 fi
 rm "$depcheck"
+
+# vim:sw=8:ts=8:noet
diff --git a/tg-mail.sh b/tg-mail.sh
index 7b8f7ff..4d23a0e 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:sw=8:ts=8:noet
diff --git a/tg-patch.sh b/tg-patch.sh
index 97338ab..220a0b0 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:sw=8:ts=8:noet
diff --git a/tg-remote.sh b/tg-remote.sh
index 4f60c73..2a9c4a0 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:sw=8:ts=8:noet
diff --git a/tg-summary.sh b/tg-summary.sh
index 3c90a6b..c165d19 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:sw=8:ts=8:noet
diff --git a/tg-update.sh b/tg-update.sh
index 040800d..1114b7d 100644
--- a/tg-update.sh
+++ b/tg-update.sh
@@ -142,3 +142,5 @@ if ! git merge "$merge_with"; then
 	fi
 	exit 3
 fi
+
+# vim:sw=8:ts=8:noet
diff --git a/tg.sh b/tg.sh
index 4dcc15e..137fef4 100644
--- a/tg.sh
+++ b/tg.sh
@@ -283,3 +283,5 @@ help|--help|-h)
 	}
 	. "@cmddir@"/tg-$cmd;;
 esac
+
+# vim:sw=8:ts=8:noet
-- 
tg: (f17218e..) features/vim-modelines (depends on: upstream)
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux