]> git.madduck.net Git - code/vcsh.git/log

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

code/vcsh.git
10 years agovcsh: Formatting
Richard Hartmann [Fri, 21 Feb 2014 20:29:07 +0000 (21:29 +0100)]
vcsh: Formatting

10 years agoMerge branch 'feature/chown'
Richard Hartmann [Thu, 13 Feb 2014 22:40:28 +0000 (23:40 +0100)]
Merge branch 'feature/chown'

10 years agovcsh: Fix up the rest of the (relevant) git calls
Richard Hartmann [Thu, 13 Feb 2014 22:32:31 +0000 (23:32 +0100)]
vcsh: Fix up the rest of the (relevant) git calls

10 years agovcsh: Pass along exit code
Richard Hartmann [Wed, 12 Feb 2014 23:39:21 +0000 (00:39 +0100)]
vcsh: Pass along exit code

If `git foo` exits 13, it would be prudent for vcsh to exit 13, as well.
Start with support for `vcsh pull`.

10 years agoIntroduce static manpage as part of normal repo
Richard Hartmann [Sun, 9 Feb 2014 18:08:18 +0000 (19:08 +0100)]
Introduce static manpage as part of normal repo

GitHub: fixes RichiH/vcsh#104

10 years agodoc/sample_hooks/: Cleanups
Richard Hartmann [Sat, 8 Feb 2014 16:00:47 +0000 (17:00 +0100)]
doc/sample_hooks/: Cleanups

10 years agoMerge pull request #89 from alerque/master
Richard Hartmann [Sat, 8 Feb 2014 15:30:38 +0000 (16:30 +0100)]
Merge pull request #89 from alerque/master

Add hooks to allow fancy merge handling

10 years agoadd sample hooks that allow cloning over extant files
Caleb Maclennan [Sun, 20 Oct 2013 01:35:10 +0000 (19:35 -0600)]
add sample hooks that allow cloning over extant files

Cloning a repo over an existing set of files would usually
cause a merge conflict that aborts the process and requires
manual intervention. This pair of hooks handles that case
by manually moving the extant objects out of the way,
completing the checktout, then restoring them to their
original places. The resulting state is a set of unstaged
local changes.

10 years agoadd hooks to enable auto handing of merge conflicts
Caleb Maclennan [Sun, 20 Oct 2013 01:11:52 +0000 (19:11 -0600)]
add hooks to enable auto handing of merge conflicts

These hooks before and after the actual checkout process
will enable a pair of hook scripts to automatically handle
conflicts and potentially allow the checkout of repositories
over existing file sets

10 years agoUpdate CONTRIBUTORS
Richard Hartmann [Tue, 4 Feb 2014 22:16:03 +0000 (23:16 +0100)]
Update CONTRIBUTORS

10 years agovcsh: don't allow `clone` to choke on filenames with spaces
Dato Simó [Mon, 23 Sep 2013 20:47:43 +0000 (21:47 +0100)]
vcsh: don't allow `clone` to choke on filenames with spaces

By replacing the "for" loop with a "while" loop, it is easy to read
line-oriented output without worrying about spaces. However, now the
loop executes in a subshell, and VCSH_CONFLICT won't be available in
the parent shell. In this case, a trivial, portable solution is to
have the comparison as the last command in the subshell.

10 years agovcsh: strip host part from GIT_REMOTE when inferring VCSH_REPO_NAME
Dato Simó [Mon, 23 Sep 2013 21:13:54 +0000 (22:13 +0100)]
vcsh: strip host part from GIT_REMOTE when inferring VCSH_REPO_NAME

`vcsh clone` does:

    VCSH_REPO_NAME=$(basename "${GIT_REMOTE}" .git)

Typically, most remote paths will have a non-empty directory component,
so using basename works well in all common cases. However, when doing
something like:

    % vcsh clone example.org:repo.git

VCSH_REPO_NAME will be set to "example.org:repo" instead of "repo". This
also happens when using url.<x>.insteadOf, à-la:

    % vcsh clone v:repo

Stripping everything up to the first colon in the remote URL fixes the
issue.

N.B.: remote URLs with protocol (e.g. http://, git://, or ssh://) do
not exhibit this problem, and are unaffected by this change.

Conflicts:
vcsh

10 years agovcsh: Initialize repos with --shared=0600
Richard Hartmann [Tue, 21 Jan 2014 14:56:15 +0000 (15:56 +0100)]
vcsh: Initialize repos with --shared=0600

Configurations and other dotdir content may be highly confidential.

Ensure we're not leaking/exposing information by making vcsh
repositories user-accessible, only.

Thanks to Enrico Zini for realizing this was a problem.

10 years agoUpdate CONTRIBUTORS
Richard Hartmann [Mon, 6 Jan 2014 02:06:40 +0000 (03:06 +0100)]
Update CONTRIBUTORS

10 years ago.gitignore: Ignore .swp
Richard Hartmann [Sun, 29 Dec 2013 16:41:12 +0000 (17:41 +0100)]
.gitignore: Ignore .swp

Opening Vim in $PWD without a file name (think scratch pad) will open
.swp, which is not matched by *.swp

10 years agosh: Bump version to 1.20131229.git-HEAD
Richard Hartmann [Sun, 29 Dec 2013 16:25:25 +0000 (17:25 +0100)]
sh: Bump version to 1.20131229.git-HEAD

10 years agoRelease v1.20131229
Richard Hartmann [Sun, 29 Dec 2013 16:22:24 +0000 (17:22 +0100)]
Release v1.20131229

10 years agovcsh: Improve comments
Richard Hartmann [Sun, 29 Dec 2013 00:54:00 +0000 (01:54 +0100)]
vcsh: Improve comments

10 years agovcsh: Typo
Richard Hartmann [Sun, 29 Dec 2013 00:51:14 +0000 (01:51 +0100)]
vcsh: Typo

10 years agoUse 'case' sh construct to shorten short commands' recognition
Mikhail Gusarov [Sat, 28 Dec 2013 16:41:53 +0000 (17:41 +0100)]
Use 'case' sh construct to shorten short commands' recognition

10 years agoUse "assign default values" sh feature to simplify defaults handling
Mikhail Gusarov [Sat, 28 Dec 2013 16:37:44 +0000 (17:37 +0100)]
Use "assign default values" sh feature to simplify defaults handling

10 years agovcsh: More resilient variable handling for 6b22746e94bf469dd462907fd43d13a454e56ede
Richard Hartmann [Sun, 29 Dec 2013 00:04:49 +0000 (01:04 +0100)]
vcsh: More resilient variable handling for 6b22746e94bf469dd462907fd43d13a454e56ede

10 years agoUse sh 'default value' expansion more idiomatic construct
Mikhail Gusarov [Sat, 28 Dec 2013 16:31:42 +0000 (17:31 +0100)]
Use sh 'default value' expansion more idiomatic construct

10 years agoREADME.md: Update Debian install directions
Richard Hartmann [Sat, 28 Dec 2013 15:21:32 +0000 (16:21 +0100)]
README.md: Update Debian install directions

10 years agoMerge pull request #101 from dastergon/add_gentoo_doc
Richard Hartmann [Sat, 28 Dec 2013 15:20:13 +0000 (07:20 -0800)]
Merge pull request #101 from dastergon/add_gentoo_doc

Add Gentoo installation in README

10 years agovcsh: Improve error message
Richard Hartmann [Sat, 28 Dec 2013 14:21:20 +0000 (15:21 +0100)]
vcsh: Improve error message

10 years agovcsh: Fix mktemp bug
Richard Hartmann [Sat, 28 Dec 2013 14:17:36 +0000 (15:17 +0100)]
vcsh: Fix mktemp bug

2650689d28f662e147d0be4c3ee248f873dbcc3c introduced a bug:
If we are using a template, GNU mktemp will use PWD instead of $TMPDIR

10 years agoMerge branch 'master' of github.com:RichiH/vcsh
Richard Hartmann [Thu, 26 Dec 2013 20:23:11 +0000 (21:23 +0100)]
Merge branch 'master' of github.com:RichiH/vcsh

10 years agoadd Gentoo installation in README
Pavlos Ratis [Tue, 24 Dec 2013 22:33:18 +0000 (00:33 +0200)]
add Gentoo installation in README

10 years agoMerge pull request #98 from dottedmag/fix--echo-n-os-x
Richard Hartmann [Fri, 20 Dec 2013 22:34:54 +0000 (14:34 -0800)]
Merge pull request #98 from dottedmag/fix--echo-n-os-x

Use printf, not echo -n to print messages without newline

10 years agoUse printf, not echo -n to print messages without newline
Mikhail Gusarov [Wed, 18 Dec 2013 21:23:22 +0000 (22:23 +0100)]
Use printf, not echo -n to print messages without newline

OS X echo does not understand -n and prints it literally

10 years agoMerge branch 'master' of github.com:RichiH/vcsh
Richard Hartmann [Wed, 18 Dec 2013 13:59:51 +0000 (14:59 +0100)]
Merge branch 'master' of github.com:RichiH/vcsh

10 years agoMerge pull request #97 from Zearin/tables
Richard Hartmann [Tue, 17 Dec 2013 01:48:17 +0000 (17:48 -0800)]
Merge pull request #97 from Zearin/tables

README.md: Use GFM tables for Usage

10 years agoUse GFM table syntax for usage examples
Tony [Mon, 16 Dec 2013 19:27:56 +0000 (14:27 -0500)]
Use GFM table syntax for usage examples

Table syntax in GFM?  Oh, yes:
<https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#tables>

10 years agovcsh: Formatting
Richard Hartmann [Sat, 14 Dec 2013 10:12:17 +0000 (11:12 +0100)]
vcsh: Formatting

10 years agovcsh: Bump version to 1.20131214.git-HEAD
Richard Hartmann [Fri, 13 Dec 2013 23:25:36 +0000 (00:25 +0100)]
vcsh: Bump version to 1.20131214.git-HEAD

10 years agoRelease 1.20131214
Richard Hartmann [Fri, 13 Dec 2013 23:01:30 +0000 (00:01 +0100)]
Release 1.20131214

10 years agoRevert "Implement basename in shell"
Richard Hartmann [Mon, 9 Dec 2013 09:18:34 +0000 (10:18 +0100)]
Revert "Implement basename in shell"

This reverts commit 794f0aac869dda034300211e9be45db123d84377.

Conflicts:
vcsh

Turns out the shell implementation didn't account for trailing
slashes. While, arguably, a proper interactive shell should eat
them before execution anyway, this can also be called in script
context.

This means that

    vcsh clone foo/

made it fail and even after commit 7e33e38a869989d04d12f2ef160d514041eb01e3

    vcsh clone foo//

would have failed.

Revert to safe and time-proven default: Standalone `basename`.

For further information, see:

https://github.com/RichiH/vcsh/pull/92

10 years agoMerge remote-tracking branch 'archwyrm/clone-trailing-slash-fix'
Richard Hartmann [Mon, 9 Dec 2013 09:17:57 +0000 (10:17 +0100)]
Merge remote-tracking branch 'archwyrm/clone-trailing-slash-fix'

10 years agoFix missing blank repository name when cloning
Markus Martin [Sun, 1 Dec 2013 21:42:33 +0000 (16:42 -0500)]
Fix missing blank repository name when cloning

If the repository path given to 'vcsh clone' contains a trailing slash,
the resulting cloned directory will be '.git' and vcsh will not
recognize the cloned repository by name. This change ensures that a
trailing slash will be stripped and the repository name will be
populated.

The previous faulty behavior is due to the custom implementation of the
basename command first introduced in 794f0aac.

10 years agoFixed variable assignment bug in rename()
Rob Cornish [Mon, 25 Nov 2013 04:55:34 +0000 (15:55 +1100)]
Fixed variable assignment bug in rename()

11 years agoMakefile: Make `make test` silent
Richard Hartmann [Sun, 27 Oct 2013 17:55:29 +0000 (18:55 +0100)]
Makefile: Make `make test` silent

11 years agoMakefile: Avoid calling `dirname`
Richard Hartmann [Sun, 27 Oct 2013 17:54:53 +0000 (18:54 +0100)]
Makefile: Avoid calling `dirname`

11 years agoRemoved newline escape sequence that was not properly being obeyed anyway, was printi...
Caleb Maclennan [Sun, 20 Oct 2013 01:58:22 +0000 (19:58 -0600)]
Removed newline escape sequence that was not properly being obeyed anyway, was printing to the console as is. Not needed because the echo being used already terminates with a newline.

11 years agoCONTRIBUTORS: Add Caleb Maclennan
Richard Hartmann [Sun, 27 Oct 2013 11:45:54 +0000 (12:45 +0100)]
CONTRIBUTORS: Add Caleb Maclennan

11 years agoRemoved unnecessary syntax
Caleb Maclennan [Sun, 20 Oct 2013 01:28:18 +0000 (19:28 -0600)]
Removed unnecessary syntax

11 years agotools/list_CONTRIBUTORS, CONTRIBUTORS: Better wording
Richard Hartmann [Sun, 27 Oct 2013 11:34:20 +0000 (12:34 +0100)]
tools/list_CONTRIBUTORS, CONTRIBUTORS: Better wording

11 years agoCONTRIBUTORS: Update
Richard Hartmann [Sun, 27 Oct 2013 11:30:09 +0000 (12:30 +0100)]
CONTRIBUTORS: Update

11 years agoMerge branch 'master' of github.com:RichiH/vcsh
Richard Hartmann [Sun, 27 Oct 2013 11:17:11 +0000 (12:17 +0100)]
Merge branch 'master' of github.com:RichiH/vcsh

11 years agoMerge commit 'ccf40b91a67127084ee81e875ee5b77b3b0f019d'
Richard Hartmann [Sun, 27 Oct 2013 11:16:27 +0000 (12:16 +0100)]
Merge commit 'ccf40b91a67127084ee81e875ee5b77b3b0f019d'

Conflicts:
Makefile

11 years agoMerge pull request #86 from xaocon/master
Richard Hartmann [Sun, 27 Oct 2013 11:09:51 +0000 (04:09 -0700)]
Merge pull request #86 from xaocon/master

updated docs to leave out run so it will be consistent

11 years agoMerge pull request #90 from Dridi/feature--makefile_dirs
Richard Hartmann [Sun, 27 Oct 2013 11:04:55 +0000 (04:04 -0700)]
Merge pull request #90 from Dridi/feature--makefile_dirs

Make Makefile more configurable (doc and zsh dirs)

11 years agoMake Makefile more configurable (doc and zsh dirs)
Dridi Boukelmoune [Tue, 22 Oct 2013 17:15:26 +0000 (19:15 +0200)]
Make Makefile more configurable (doc and zsh dirs)

Some distributions expect the documentation in /usr/share/doc/name, and
others in /usr/share/doc/name-version. The zsh directory for completion
is also configurable due to differences between distributions.

11 years agoMake root tool configurable
Gregor Jasny [Thu, 17 Oct 2013 19:25:09 +0000 (21:25 +0200)]
Make root tool configurable

On Macports one need to run ronn-1.9 instead of ronn. Therefore
make ronn tool configurable. one can now run

make RONN=ronn-1.9

to execute ronn-1.9 instead of the default ronn.

Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
11 years agoupdated docs to leave out run so it will be consistent
Evan Pitstick [Mon, 30 Sep 2013 19:28:13 +0000 (15:28 -0400)]
updated docs to leave out run so it will be consistent

11 years agoMerge branch 'master' of github.com:RichiH/vcsh
Richard Hartmann [Fri, 20 Sep 2013 15:32:08 +0000 (17:32 +0200)]
Merge branch 'master' of github.com:RichiH/vcsh

11 years agovcsh: Add ".git-HEAD" to version number
Richard Hartmann [Fri, 20 Sep 2013 15:31:15 +0000 (17:31 +0200)]
vcsh: Add ".git-HEAD" to version number

This should make reporting bugs easier/more reliable.

11 years agovcsh: Add git version information on all debug runs
Richard Hartmann [Thu, 19 Sep 2013 21:45:51 +0000 (23:45 +0200)]
vcsh: Add git version information on all debug runs

11 years agoMerge branch 'feature--shortnames'
Richard Hartmann [Thu, 19 Sep 2013 21:41:27 +0000 (23:41 +0200)]
Merge branch 'feature--shortnames'

Conflicts:
vcsh

11 years agoMerge branch 'master' of github.com:RichiH/vcsh
Richard Hartmann [Thu, 19 Sep 2013 21:37:33 +0000 (23:37 +0200)]
Merge branch 'master' of github.com:RichiH/vcsh

11 years agovcsh: Make `vcsh version` print vcsh and git version information
Richard Hartmann [Thu, 19 Sep 2013 21:36:58 +0000 (23:36 +0200)]
vcsh: Make `vcsh version` print vcsh and git version information

11 years agoMerge branch 'fix--mktemp_on_OSX'
Richard Hartmann [Tue, 10 Sep 2013 14:14:35 +0000 (16:14 +0200)]
Merge branch 'fix--mktemp_on_OSX'

11 years agovcsh: Add comments
Richard Hartmann [Tue, 10 Sep 2013 14:12:02 +0000 (16:12 +0200)]
vcsh: Add comments

11 years agovcsh: Support *BSD/OSX mktemp
Richard Hartmann [Mon, 9 Sep 2013 23:34:42 +0000 (01:34 +0200)]
vcsh: Support *BSD/OSX mktemp

mktemp on *BSD/OSX expects a template whereas GNU mktemp does not.
Pass a template to mktemp to make *BSD/OSX happy.

github: fixes richih/vcsh#83

11 years agoRelease v1.20130909
Richard Hartmann [Mon, 9 Sep 2013 07:16:54 +0000 (09:16 +0200)]
Release v1.20130909

11 years agovcsh: Move up gitignore check
Richard Hartmann [Mon, 2 Sep 2013 22:57:24 +0000 (00:57 +0200)]
vcsh: Move up gitignore check

11 years agoMerge branch 'merge--madduck/relative_worktree'
Richard Hartmann [Mon, 2 Sep 2013 22:54:23 +0000 (00:54 +0200)]
Merge branch 'merge--madduck/relative_worktree'

Github: Fixes richih/vcsh#26

11 years agovcsh: Add support for choosing relative or absolute core.worktree
Richard Hartmann [Mon, 2 Sep 2013 22:51:14 +0000 (00:51 +0200)]
vcsh: Add support for choosing relative or absolute core.worktree

11 years agoMerge remote-tracking branch 'madduck/relative_worktrees' into merge--madduck/relativ...
Richard Hartmann [Mon, 2 Sep 2013 21:16:03 +0000 (23:16 +0200)]
Merge remote-tracking branch 'madduck/relative_worktrees' into merge--madduck/relative_worktree

11 years agoRelease v1.20130829
Richard Hartmann [Thu, 29 Aug 2013 20:40:10 +0000 (22:40 +0200)]
Release v1.20130829

11 years agovcsh: Implement shortnames for commands
Richard Hartmann [Thu, 29 Aug 2013 18:20:00 +0000 (20:20 +0200)]
vcsh: Implement shortnames for commands

    vcsh st

will now expand to

    vcsh status

11 years agovcsh: Support `vcsh status <repo>`
Richard Hartmann [Thu, 29 Aug 2013 06:34:13 +0000 (08:34 +0200)]
vcsh: Support `vcsh status <repo>`

11 years agovcsh: Make init() less verbose
Richard Hartmann [Thu, 29 Aug 2013 06:29:52 +0000 (08:29 +0200)]
vcsh: Make init() less verbose

11 years agoREADME.md: Cleanup
Richard Hartmann [Tue, 27 Aug 2013 06:49:20 +0000 (08:49 +0200)]
README.md: Cleanup

11 years agovcsh: Implement pre-/post-init hooks
Richard Hartmann [Tue, 20 Aug 2013 20:43:01 +0000 (22:43 +0200)]
vcsh: Implement pre-/post-init hooks

11 years agoMerge pull request #80 from ebouchut/typo
Richard Hartmann [Mon, 19 Aug 2013 12:59:45 +0000 (05:59 -0700)]
Merge pull request #80 from ebouchut/typo

Fix typos in the README file.

11 years agoFix typos in README
Eric Bouchut [Mon, 19 Aug 2013 11:00:15 +0000 (13:00 +0200)]
Fix typos in README

11 years agoREADME.md: More use cases
Richard Hartmann [Wed, 14 Aug 2013 07:20:27 +0000 (09:20 +0200)]
README.md: More use cases

11 years agoREADME.md: Make intro less scary
Richard Hartmann [Wed, 14 Aug 2013 07:15:01 +0000 (09:15 +0200)]
README.md: Make intro less scary

11 years agoREADME.md: Move usage examples up
Richard Hartmann [Wed, 14 Aug 2013 06:59:27 +0000 (08:59 +0200)]
README.md: Move usage examples up

11 years agoREADME.md: Move mr farther down
Richard Hartmann [Wed, 14 Aug 2013 06:47:27 +0000 (08:47 +0200)]
README.md: Move mr farther down

11 years agovcsh: Print debug and verbose info
Richard Hartmann [Mon, 5 Aug 2013 15:01:16 +0000 (17:01 +0200)]
vcsh: Print debug and verbose info

11 years ago%s/richih.mailinglist@gmail.com/richih@debian.org/
Richard Hartmann [Fri, 2 Aug 2013 15:17:25 +0000 (17:17 +0200)]
%s/richih.mailinglist@gmail.com/richih@debian.org/

11 years agoMerge branch 'feature--vcsh-commit'
Richard Hartmann [Wed, 31 Jul 2013 22:19:02 +0000 (00:19 +0200)]
Merge branch 'feature--vcsh-commit'

Conflicts:
doc/vcsh.1.ronn
vcsh

11 years agoIntroduce `vcsh commit`
Richard Hartmann [Wed, 31 Jul 2013 22:16:17 +0000 (00:16 +0200)]
Introduce `vcsh commit`

11 years agoRelease v1.20130724
Richard Hartmann [Wed, 24 Jul 2013 20:15:09 +0000 (22:15 +0200)]
Release v1.20130724

11 years agoMerge branch 'feature--vcsh-status'
Richard Hartmann [Tue, 23 Jul 2013 23:29:04 +0000 (01:29 +0200)]
Merge branch 'feature--vcsh-status'

11 years agoIntroduce `vcsh status`
Richard Hartmann [Tue, 23 Jul 2013 23:26:20 +0000 (01:26 +0200)]
Introduce `vcsh status`

11 years agovcsh: Output formatting
Richard Hartmann [Tue, 23 Jul 2013 23:15:10 +0000 (01:15 +0200)]
vcsh: Output formatting

11 years agodoc/vcsh.1.ronn: Alphabetize options
Richard Hartmann [Tue, 23 Jul 2013 23:14:45 +0000 (01:14 +0200)]
doc/vcsh.1.ronn: Alphabetize options

11 years agoRelease v1.20130723
Richard Hartmann [Tue, 23 Jul 2013 19:30:59 +0000 (21:30 +0200)]
Release v1.20130723

11 years agoMerge branch 'master' of github.com:RichiH/vcsh
Richard Hartmann [Tue, 23 Jul 2013 19:17:41 +0000 (21:17 +0200)]
Merge branch 'master' of github.com:RichiH/vcsh

11 years agodoc/hooks: Ask for sample hooks
Richard Hartmann [Tue, 23 Jul 2013 19:16:58 +0000 (21:16 +0200)]
doc/hooks: Ask for sample hooks

11 years agovcsh: Make gitignore options alphabetical
Richard Hartmann [Sun, 21 Jul 2013 11:25:42 +0000 (13:25 +0200)]
vcsh: Make gitignore options alphabetical

11 years agovcsh: s/git/Git/
Richard Hartmann [Sat, 20 Jul 2013 20:07:04 +0000 (22:07 +0200)]
vcsh: s/git/Git/

11 years agoGet rid of GIT_WORK_TREE during vcsh sessions
martin f. krafft [Fri, 19 Jul 2013 17:21:14 +0000 (19:21 +0200)]
Get rid of GIT_WORK_TREE during vcsh sessions

This patch gets rid of GIT_WORK_TREE completely, which makes the whole thing a
bit more transparent, I find. Git uses core.worktree anyway, so the
environment variable isn't needed.

Signed-off-by: martin f. krafft <madduck@madduck.net>
11 years agoKeep worktree relative to GIT_DIR
martin f. krafft [Sat, 27 Apr 2013 06:17:30 +0000 (08:17 +0200)]
Keep worktree relative to GIT_DIR

core.worktree can be set relatively to GIT_DIR, thereby preventing the
hard-coding of the home directory path, which should make a vcsh setup
more portable.

On the other hand, this means that the vcsh repo.d is now invariably
linked to its position, relative to the base directory. Apply this patch
only if you think it to be less likely that people change
~/.config/vcsh/repo.d to something else, than they would rsync/tar/mv
a whole tree to a different $HOME.

Paths are resolved using Git itself, for maximum portability.

In addition to making sure the new method works on new repositories,
I checked that

  - "old" repositories can be used with the new code just fine;
  - upgrading works.

Signed-off-by: martin f. krafft <madduck@madduck.net>
11 years agoRemove unnecessary line
martin f. krafft [Fri, 19 Jul 2013 14:03:09 +0000 (16:03 +0200)]
Remove unnecessary line

Signed-off-by: martin f. krafft <madduck@madduck.net>
11 years agoPOSIX syntax requires ; before }
martin f. krafft [Fri, 19 Jul 2013 14:02:53 +0000 (16:02 +0200)]
POSIX syntax requires ; before }

Signed-off-by: martin f. krafft <madduck@madduck.net>
11 years agoMerge remote-tracking branch 'origin/fix--vcsh-rename'
Richard Hartmann [Fri, 19 Jul 2013 06:24:44 +0000 (08:24 +0200)]
Merge remote-tracking branch 'origin/fix--vcsh-rename'