Coder Social home page Coder Social logo

knoebber / dotfile Goto Github PK

View Code? Open in Web Editor NEW
99.0 99.0 3.0 556 KB

Simple version control made for tracking single files

Home Page: https://dotfilehub.com

License: GNU General Public License v3.0

Makefile 0.37% Go 97.18% CSS 1.66% HTML 0.34% Dockerfile 0.45%
configuration dotfile dotfile-management dotfiles file-share files linux version-control

dotfile's People

Contributors

alexthemitchell avatar dooleydevin avatar knoebber avatar miniriley2012 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dotfile's Issues

Panics if you attempt to commit a file that isn't tracked

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

Throw error if checkout is going overwrite uncommited changes

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.

Implement diff

This should support diffing between different commit hashes, and diffing between uncommitted work and the current commit.

Improve diff

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.

Make CLI install easier

go install might not put the binary in the user's $PATH.

Also, should add AUR/Brew packages.

Implement checkout

This should revert the file to its state at the commit and change its "current" key in the json to the hash.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.