knoebber / dotfile Goto Github PK
View Code? Open in Web Editor NEWSimple version control made for tracking single files
Home Page: https://dotfilehub.com
License: GNU General Public License v3.0
Simple version control made for tracking single files
Home Page: https://dotfilehub.com
License: GNU General Public License v3.0
I'm thinking something like dot -l
. Or dot status
, or maybe its just the default output of dot
.
Possible output:
bash => ~/.bashrc
emacs => .emacs.d/init.el
i3 => ~/.config/i3/config
This should support diffing between different commit hashes, and diffing between uncommitted work and the current commit.
Commands, aliases and commits hashes should tab complete
To reproduce
$ dot init ~/.bashrc
Initialized /home/nicolas/.bashrc as "bashrc"
$ dot commit bashrc
Created /home/nicolas/.dotfile/bashrc/786bc4cd0fdcb72c461b8f5465304e6bbc7c91c8
$ dot commit bashr
panic: runtime error: invalid memory address or nil pointer dereference
This should revert the file to its state at the commit and change its "current"
key in the json to the hash.
It doesn't really work - might consider using different CLI framework.
It's convenient to revert a file back to its last commit and discard any new changes. Currently you can do this with dot checkout <filename>
. This will discard any changes without telling user.
Instead it should throw an error like: "<filename>" has uncommitted changes, use -f to override
.
Also implement -f option for checkout.
go install
might not put the binary in the user's $PATH
.
Also, should add AUR/Brew packages.
Diff currently it shows the full file. It should be smarter and only show areas that change while still providing enough context to know where the changes are.
Currently it adds two flags via a closure. This isn't maintainable if we need to add more flags in the future.
Make the following work:
$ dot init ~/test.txt
Initialized as "test"
$ dotfile diff ~/test.txt
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.