Antonio Ospite

Results 38 comments of Antonio Ospite

I too am using a hook-based solution but unlike @alerque I move the existing files to a backup directory and leave them there; my common use case is to **replace**...

> @ao2 mind sharing that hook with me? @soulofmischief I have something like this in `hooks-available/backup-existing-files.sh`: ```bash #!/bin/sh set -e BACKUP_DIR="vcsh-backup/${VCSH_REPO_NAME}-$(date "+%F-%R")" git ls-tree --name-only origin/master | \ while read...

Hi, the sparse checkout approach to resolve conflicting files is interesting. Can I ask what is your workflow to **add** the `README` and `LICENSE` files to your repositories when using...

@jwhitley thanks for explaining. This seems to be the more straightforward way indeed. I was experimenting with temporarily restoring the files marked in `sparse-checkout` in-place, with `git checkout --ignore-skip-worktree-bits` but...

@jwhitley reasoning in terms of *set theory*: the files marked in the `sparse-checkout` file represent the **intersection** of the repositories, and having them ignored at checkout-time allows to make the...

I am finally testing the sparse checkout setup (with a centralized `sparse-checkout` file). It seems that #210 would be needed to make `vcsh clone` work. @jwhitley what is your experience...

Hi, here is my current setup using sparse-checkout: https://git.ao2.it/config/vcsh.git/ The `sparse-checkout` file (https://git.ao2.it/config/vcsh.git/blob/HEAD:/.config/vcsh/sparse-checkout) is centralized and linked into the repositories `GIT_DIR` by the `pre-upgrade` hook. The `pre-enter` and `post-enter` hooks...

> I am keen on using sparsecheckout with hooks that i have been happy using for a while. Because of this, I am keen to add submodules into this mix....

I'll check the case of an empty repo, thanks for reporting it. About the problem with submodules: do you have any hooks to initialize submodules at clone time? It does...

BTW let's not add major update info by editing posts, I now noticed that github does not send notifications for edits. I had read your message in the notification email...