Nathan Farrar
Nathan Farrar
Sorry for late response. Thank you @jwhitley for that information. When I was looking into this, I hadn't played with the hooks much yet. That info above got me started,...
Maybe unnecessary - the reason I asked was for my current testing/setup use-case: 1. When cloning a repository, I have a [pre-merge-unclobber](https://github.com/nfarrar/dotfiles/blob/vcsh/.config/vcsh/hooks-available/pre-merge-unclobber) hook that moves files out of the way...
I ended up doing this: ``` [$HOME/.config/vcsh/repo.d/neobundle.git] checkout = mkdir -p ~/.vim/bundle; VCSH_BASE=~/.vim/bundle/neobundle.vim vcsh clone https://github.com/Shougo/neobundle.vim neobundle ``` ... but your solution is much better, I'm going to try to...
@alerque Sorry, you're correct. When re-running `vcsh write-gitignore ` the `/.gitignore.d/` file is automatically rewritten with itself included and does not need to be re-added.
@alerque is correct that you don't need to re-add the gitignore file _each time_ you regenerate the gitignore file (you do have to add it initially). That was tangential to...
I would agree that `$XDG_CONFIG_HOME` is not the proper place for the `repo.d` directory. However - I also do not think that `$XDG_DATA_HOME` is correct. While these are 'binary blobs'...
It looks like this is somehow being done in this repository: https://github.com/vdemeester/vcsh-home I'm not quite sure how yet.
@vdemeester Thank you for that explanation ... and for publishing that repo. I'm still trying to fully understand it all, but using it as a basis for my own workflow....
With a standard git hook, you can do something like `branch=$(git rev-parse --symbolic --abbrev-ref $1) ` to parse the branch name - however not working with vcsh hook.
I think I've got it figured out: ``` #!/bin/sh VCSH_CLOBBER_MSG=0 VCSH_CLOBBER_DIR="$HOME/.cache/vcsh/clobbered/$VCSH_REPO_NAME" # move files out of the way for object in $(git ls-tree -r "origin/$VCSH_REPO_NAME" | awk '{print $4}'); do...