01vcs / git-meta Goto Github PK
View Code? Open in Web Editor NEWWanna git preserve your file dates? git-meta stores all files' metadata into .gitmeta! On every commit!
Wanna git preserve your file dates? git-meta stores all files' metadata into .gitmeta! On every commit!
/usr/bin
and /usr/lib
git-meta init
git-meta -h
git-meta -v
git-meta -u
(to update, use Web3Updater - also patch repos)Reference: https://gist.github.com/andris9/1978266#gistcomment-3930475
https://stackoverflow.com/questions/45416049/how-to-make-a-git-pre-commit-hook-that-checks-the-commit-message (after commit and .gitmeta is done, get commit msg)
https://www.w3docs.com/snippets/git/how-to-retrieve-hash-for-commits-in-git.html (get commit hash, too. Then commit in .git/meta)
Hello,
I don't know this is the right place to ask but i got the following situation:
I use git-bash.exe on my windows. I have a gitlab self-hosted server. I have a repository and did the following things:
But when someone else made a git clone with git-bash.exe they have no .git/hooks/git-meta and also the files were not the same with date modfied and date created. I think I need to do something with the git-meta to stay in .git/hooks but i don't how i can manage it.
What I have in mind is when someone commits it automatically is set in the .gitmeta and when someone is git cloning or git pulling it automatic do a git-meta --apply.
Is this possible and how can i do this in combination with your git-meta script?
my "ps" says it's locked up at "cat".
dodgy bash script probably?
Also - instructions seem wrong?
Copy git-meta.sh and init.sh into your repo
seems like a less-than-ideal idea to stick the script in the repo itself? Shouldn't this be in /usr/local/bin/ ?
/usr/bin is the wrong place to put local scripts
init.sh is a bad name. should be git-meta-init.sh or something more sensible.
this is not portable (centos/redhat/etc):
sudo apt install
it's also a bad idea to install stuff without asking or checking if it's already there anyhow. Don't do that - just tell people it's a dependency, and stop if it's missing.
@Bananaman I implore you a PR fusing git-meta's current code with yours ๐
I need my git-meta back working (and it isn't anymore - issue #9)
The install script either needs to be rewritten to account for BSD cp
, or to target GNU cp
if installed. It appears the git-meta.sh
script does this.
I haven't looked deeply into git pre-hooks, but I imagine the ppl using this could provide instructions (or even upgrade the init.sh with an option) to make the git-meta commands run whenever an commit is done (before) and after a pull is done as to provide a seamless experience.
These revisions will be applied to an individual git repo. Then, the current one, will be merged into this repo as newer commits.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.