Newer
Older
Index: vcsh/Makefile
===================================================================
--- vcsh.orig/Makefile 2012-02-13 02:02:19.999468653 +0100
+++ vcsh/Makefile 2012-02-15 17:34:46.413360634 +0100
manpages: $(manpages)
-vcsh.1: doc/vcsh.1.ronn
- ronn < doc/vcsh.1.ronn > vcsh.1
+vcsh.1:
+ :
clean:
- rm -rf vcsh.1
+ :
uninstall:
rm -rf $(DESTDIR)$(PREFIX)/bin/vcsh
Index: vcsh/vcsh.1
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ vcsh/vcsh.1 2012-02-15 17:34:53.201360736 +0100
@@ -0,0 +1,189 @@
+.\" generated with Ronn/v0.7.3
+.\" http://github.com/rtomayko/ronn/tree/0.7.3
+.
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
+.
+.SH "NAME"
+\fBvcsh\fR \- manage config files in $HOME via fake bare git repositories
+.
+.SH "SYNOPSIS"
+\fBvcsh\fR clone \fIurl\fR [\fIrepo\fR]
+.
+.P
+\fBvcsh\fR delete \fIrepo\fR
+.
+.P
+\fBvcsh\fR enter \fIrepo\fR
+.
+.P
+\fBvcsh\fR help
+.
+.P
+\fBvcsh\fR init \fIrepo\fR
+.
+.P
+\fBvcsh\fR list
+.
+.P
+\fBvcsh\fR list\-tracked
+.
+.P
+\fBvcsh\fR list\-tracked\-by \fIrepo\fR
+.
+.P
+\fBvcsh\fR rename \fIrepo\fR \fInewname\fR
+.
+.P
+\fBvcsh\fR run \fIrepo\fR \fIcommand\fR
+.
+.P
+\fBvcsh\fR setup \fIrepo\fR
+.
+.P
+\fBvcsh\fR which \fIsubstring\fR
+.
+.P
+\fBvcsh\fR write\-gitignore \fIrepo\fR
+.
+.P
+\fBvcsh\fR \fIrepo\fR \fIgitcommand\fR
+.
+.P
+\fBvcsh\fR \fIrepo\fR
+.
+.SH "DESCRIPTION"
+\fBvcsh\fR allows you to have several \fBgit\fR(1) repositories, all maintaining their working trees in $HOME without clobbering each other\. That, in turn, means you can have one repository per config set (zsh, vim, ssh, etc), picking and choosing which configs you want to use on which machine\.
+.
+.P
+\fBvcsh\fR is using a technique called fake bare git repositories, keeping \fI$GIT_DIR\fR in a different directory from \fI$GIT_WORK_TREE\fR which is pointed to \fI$HOME\fR\.
+.
+.P
+The use of symlinks is not needed in this setup, making for a cleaner setup\.
+.
+.P
+\fBvcsh\fR was designed with \fBmr\fR(1) in mind so you might want to install it alongside vcsh\. That being said, you can easily use \fBvcsh\fR without \fBmr\fR if you prefer\.
+.
+.P
+A sample configuration for \fBvcsh\fR and \fBmr\fR can be found at \fIhttps://github\.com/RichiH/vcsh_mr_template\fR and used with \fBvcsh clone https://github\.com/RichiH/vcsh_mr_template mr\fR\.
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
+.
+.P
+Please note that you can always use a path instead of a name for \fIrepo\fR\. This is needed to support mr and other scripts properly and of no concern to an interactive user\.
+.
+.SH "OPTIONS"
+.
+.TP
+clone
+Clone an existing repository\.
+.
+.TP
+delete
+Delete an existing repository\.
+.
+.TP
+enter
+Enter repository; spawn new \fI$SHELL\fR\.
+.
+.TP
+help
+Display help\.
+.
+.TP
+init
+Initialize an empty repository\.
+.
+.TP
+list
+List all local vcsh repositories\.
+.
+.TP
+list\-tracked
+List all files tracked by vcsh\.
+.
+.TP
+list\-tracked\-by
+List files tracked by a repository\.
+.
+.TP
+rename
+Rename a repository\.
+.
+.TP
+run
+Run command with \fI$GIT_DIR\fR and \fI$GIT_WORK_TREE\fR set\. Allows you to run any and all commands without any restrictions\. Use with care\.
+.
+.IP
+Please note that there is a somewhat magic feature for run\. Instead of \fIrepo\fR it accepts \fIpath\fR, as well\. Anything that has a slash in it will be assumed to be a path\. \fBvcsh run\fR will then operate on this directory instead of the one normally generated from the repository\'s name\. This is needed to support mr and other scripts properly and of no concern to an interactive user\.
+.
+.TP
+setup
+Set up repository with recommended settings\.
+.
+.TP
+which \fIsubstring\fR
+Find \fIsubstring\fR in name of any tracked file\.
+.
+.TP
+write\-gitignore
+Write \.gitignore\.d/\fIrepo\fR via git ls\-files\.
+.
+.TP
+\fIrepo\fR \fIgitcommand\fR
+Shortcut to run \fBvcsh\fR on a repo\. Will prepend \fBgit\fR to \fIcommand\fR\.
+.
+.TP
+\fIrepo\fR
+Shortcut to run \fBvcsh enter <repo>\fR\.
+.
+.SH "ENVIRONMENT"
+As noted earlier, \fBvcsh\fR will set \fI$GIT_DIR\fR and \fI$GIT_WORK_TREE\fR to the appropriate values for fake bare git repositories\.
+.
+.SH "HOOK SYSTEM"
+\fBvcsh\fR provides a hook system\. Hook scripts must be executable and should be placed in <$XDG_CONFIG_HOME/vcsh/hooks\-available>\. From there, they can be soft\-linked into <$XDG_CONFIG_HOME/vcsh/hooks\-enabled>; \fBvcsh\fR will only execute hooks that are in this directory\.
+.
+.P
+Hooks follow a simple format\. \fIpre\-run\fR will be run before anything is run\. If you want to have more than one script for a certain hook, just append any kind of string to order them\. A system of \fIpre\-run\fR, <pre\-run\.10>, <pre\-run\.20> etc is suggested; other options would be \fIpre\-run\-10\fR or <pre\-run\.sh>\. A dot after the hook name is optional\.
+.
+.P
+If you want to create hooks for a specific \fIvcsh\fR repository, simply prepend the repository\'s name, followed by a dot, i\.e\. <zsh\.pre\-run>\. Otherwise, the same rules as above apply\. The dot between the repository\'s name and the hook is mandatory, though\.
+.
+.P
+Available hooks are \fIpre\-enter\fR, \fIpost\-enter\fR, \fIpre\-run\fR, \fIpost\-run\fR, \fIpre\-setup\fR, and \fIpost\-setup\fR\. If you need more, vcsh is trivial to patch, but please let upstream know so we can ship them by default\.
+.
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
+.SH "DETAILED HOWTO AND FURTHER READING"
+Man pages are intended to be short and thus often useless to glean best practices from\. This software comes with a file called <README\.md>\. It contains various approaches to setting up and using vcsh\. You can view the file it as plain text or render it into various other formats via Markdown\.
+.
+.P
+On Debian\-based systems, this file can be found in </usr/share/doc/vcsh>\.
+.
+.SH "SECURITY CONSIDERATIONS"
+\fBvcsh\fR allows you to execute arbitrary commands via \fBvcsh\fR run\. For example, adding a \fBsudo\fR(8) rule for \fBvcsh\fR would be pretty stupid\.
+.
+.P
+Additionally, vcsh will source, i\.e\. execute, <$XDG_CONFIG_HOME/vcsh/config>\. You can put any and all commands into this config file and they will be executed\.
+.
+.SH "BUGS"
+None are known at this time, but reports and/or patches are more than welcome\.
+.
+.SH "HISTORY"
+Like most people, the author initially made do with a single repository for all config files, all of which were soft\-linked into \fI$HOME\fR\.
+.
+.P
+Martin F\. Krafft aka madduck came up with the concept of fake bare git repositories\.
+.
+.P
+vcsh was initally written by madduck\. This version is a re\-implementation from scratch with a lot more features\. madduck graciously agreed to let the author take over the name\.
+.
+.SH "AUTHOR"
+This manpage and \fBvcsh\fR itself were written by Richard "RichiH" Hartmann\.
+.
+.SH "COPYRIGHT"
+Copyright 2011\-2012 Richard Hartmann \fIrichih\.mailinglist@gmail\.com\fR