Re: Git server side "pre-receive" hook to create new repositories

2019-03-19 Thread Dimitri Joukoff
4 pm, Ævar Arnfjörð Bjarmason wrote: > On Tue, Mar 19 2019, Jeff King wrote: > >> On Sat, Mar 09, 2019 at 10:46:09AM +, Dimitri Joukoff wrote: >> >>> Thus, this feature request is asking that the 'pre-receive' hook >>> triggers when someone tri

protect .git folder/files from grep/sed commands

2019-03-15 Thread Dimitri Joukoff
When performing global changes in a project/tree using a command like: grep -r "search" | xargs -I {} sed -i '' s/search/replace/g there exists the possibility that this command will alter data in .git folder. Using GNU grep, it is possible to use --exclude '/.*"' to avoid the .git folder, but t

Git server side "pre-receive" hook to create new repositories

2019-03-09 Thread Dimitri Joukoff
Some time ago, Feb 2018, I put in a proposal at Swift.org , that would allow the Swift Package Manager to clone packages from the Internet to a local git server and use the local version without requiring updates to the Swift package: https://forums.swift.org/t/proposal-to-enable-spm-to-use-a-local

git MUST notify user when files will be deleted or overwritten by command

2019-03-09 Thread Dimitri Joukoff
Hi, As a relatively novice user of git, there have been far too many times that I have lost data, sometimes quite a lot. So this proposal is about catering for the less experienced users and averting fits of anger and frustration. The only reason my computer still works is because my sub-conscio