Coder Social home page Coder Social logo

jw0k / gwatch Goto Github PK

View Code? Open in Web Editor NEW
44.0 44.0 2.0 5.2 MB

Watches a folder for file modifications and commits them to a git repository automatically

License: MIT License

CMake 0.64% PowerShell 0.05% Shell 0.19% C 96.96% Objective-C 0.15% Makefile 0.20% C++ 0.93% Python 0.51% HTML 0.03% PHP 0.06% M4 0.15% JavaScript 0.01% Batchfile 0.14%
automation backup git

gwatch's People

Contributors

jw0k 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

Watchers

 avatar  avatar  avatar

gwatch's Issues

Volume Shadow Copy

Would it be possible to use a shadow copy if it encounters open/locked files?

Open to adding GitHub topics?

I found gwatch via this even though I tried searching GitHub first. Are you open to adding some GitHub topics to the repo? That might make it easier to find for others. Maybe topics like git, autocommit, potentially others?

add support for long path in windows

Hi,
Thank you for this gem.

in windows I get this error with long paths (more than 260 charachters):

2020-06-01 02:45:44: Git related error, invalid path '\\?\F:\_bin\.....html' (path too long)
2020-06-01 02:45:44: Cannot add files to index

git already solved this by using this config flag :
git config core.longpaths true

and libgit2 seems to have added support for core.longpaths in this commit:
libgit2/libgit2#5347

is it possible to update the libgit2 in Gwatch so we can have this option in windows? I attempted to do it, but in fact I do not know C, so did not work.

Thank you very much.

Any plans to support mac?

I'm looking for a script exactly like this, but to run on a mac. Do you think this would compile on a mac? I don't know C at all, but I assume there is a C compiler for mac. But I can understand if you don't have a mac you're maybe not interested in maintaining a build for a platform you can't directly test, etc.

.gitignore accounted for or not?

Hey,

quick question, does this take .gitignore into account or does it see the file change and tries to commit it even tho the file/folder is ignored?

Does the timer restart after every change?

If a file is written say every 10s to the git repo, will gwatch commit 30s after the first right, including all the intervening changes?

My use case is that I want a "If I forget, make an auto commit" script. So I want a script that will wait until the last change to the repo was made n seconds ago before making a commit. I'm wondering if gwatch will support that mode of operation.

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.