Commit Graph

256 Commits (master)
 

Author SHA1 Message Date
Dave Musicant / thinkpad 107d2d64ef New test for working dir, as well as refactoring of test code into separate files. 5 years ago
Dave Musicant / thinkpad 5f3a9ee4fd Merge branch '44-statuscheck' 5 years ago
Dave Musicant / thinkpad e493af3336 Status check is back in to prevent extraneous commit attempts; test added as well. 5 years ago
Dave Musicant 26d7fb354c
Merge pull request #54 from shervinemami/master
Allow listing file diffs in the commit log message using -l
5 years ago
Dave Musicant / thinkpad 295ad233fc Added some author names to stackoverflow references. 5 years ago
Dave Musicant / thinkpad 6e53de1492 Added test script that checks at least some basic functionality in new commit message. 5 years ago
shervin.emami 9c4027a75c Better handling of file creation, deletion and renames 5 years ago
shervin.emami 1841ba624c Simply capitalized each sentence in the help info, for better readability. 5 years ago
shervin.emami 96461e5805 Limit the line width, so it fits in a single line in most git log outputs 5 years ago
shervin.emami 362f82aba9 Only commit changes if there were actual file changes. (Doesn't impact the git logs, only the shell output 5 years ago
shervin.emami 10ae3717df Allow listing file diffs in the commit log message, such as by passing '-l 10' 5 years ago
Dave Musicant / thinkpad 1d93911d1d Added travis yml file to run tests. 6 years ago
Dave Musicant / thinkpad 332538e698 Develop branch brought in 6 years ago
Dave Musicant / thinkpad 4b80c397da Removed the -u. It conflicts with -A (--all), and appears to be unnecessary as the documentation indicates for git 2.0 indicates that -A will remove anyway. Test script confirms. 6 years ago
Dave Musicant / thinkpad 2da50d4e1d Merge branch 'unit-testing' 6 years ago
Dave Musicant / thinkpad 0899308568 Some cleanup done to test script, specifically regarding removing some dead code. 6 years ago
Dave Musicant / thinkpad 92f1fd621c Bats testing script added. 6 years ago
Alex Medeiros f4903bd85b Fix systemd instructions and mod service file for consistency 6 years ago
Dave Musicant 29bd1079d6
Merge pull request #44 from bmoffit/feature-status_check
status check before add and commit
6 years ago
Dave Musicant at home 58e01b9ed8 Merge branch 'systemd-unit-file' of https://github.com/jamietanna/gitwatch into jamietanna-systemd-unit-file. Resolved conflicts due to README.markdown being renamed to README.md. 6 years ago
Dave Musicant 21c8c3524d
Merge pull request #43 from azollyx/patch-1
-r <remote> instead of -p <remote>
6 years ago
Bryan Moffit 209d24912a CD to directory, before checking status 7 years ago
Bryan Moffit f260d6f60f Merge branch 'master' into feature-status_check 7 years ago
Bryan Moffit 20b0495b44 Check status before add and commit.. incase changes were done to untracked files. 7 years ago
Rémy Delerue 28ad74926c -r <remote> instead of -p <remote>
I'm pretty sure this is a typo.
7 years ago
Miguel Araújo a0db552aed Merge pull request #42 from jwerle/master
make bpkg friendly
7 years ago
Joseph Werle 31233788e3 make bpkg friendly 7 years ago
Miguel Araújo cfaca1fa10 Add expected space in headers 7 years ago
Jamie Tanna 40a2fb5f13 Add systemd unit file 8 years ago
Peter Salanki a516c45dcf Run gitwatch in Docker container
Run example with ssh keys from host: docker run -d --restart
unless-stopped --name gitwatch -v /root/.ssh/:/root/.ssh/ -v
/opt/repo_to_sync/:/repo -v /root/.gitconfig:/root/.gitconfig
salanki:gitwatch -r origin /repo
8 years ago
Nevik Rehnel 61c1aacd7d Merge pull request #27 from aseques/patch-1
Mention `-r` and `-b` flags in Readme
9 years ago
Joan 53f2e5aad9 Mention option -b alongside -r 9 years ago
aseques a42a076783 Add mention to -r flag in the readme 9 years ago
Nevik Rehnel c0408ff8f1 Add '-u' switch to git-add invocation. Closes #25 9 years ago
Nevik Rehnel e32387152a Add section and fix link title for supervisord article 10 years ago
Nevik Rehnel 77b2db4431 Merge pull request #22 from @egidijus 10 years ago
Egidijus e3d02ad8ab added link to wiki
[Install gitwatch as a service on Debian with supervisord.](https://github.com/nevik/gitwatch/wiki/gitwatch-as-a-service-on-Debian-with-supervisord).
10 years ago
Nevik Rehnel 750e534490 Fix usage help text (typos, outdated events variable) 10 years ago
Nevik Rehnel 0b729ad582 Quote events list in command generation 10 years ago
Nevik Rehnel cd40a3f579 Update copyright notice, add Phil Thompson @philt to contributors list 10 years ago
Nevik Rehnel 56fcd4f824 Merge branch 'philt/testing' into 'testing' 10 years ago
Phil Thompson bd159dbb6e alternative to process substitution plus other multiplatform fixes 10 years ago
Phil Thompson 429c4af5bf add optional arg to specify events to monitor 10 years ago
Nevik Rehnel 21423f2895 Change README file extension because
http://hiltmon.com/blog/2012/03/07/the-markdown-file-extension/
11 years ago
Nevik Rehnel a2b78e9a60 Add `--all` to `git-add` call (dirs)
The call to `git add` for directories previously used the argument `.` while
being in the target directory. In current Git versions, this produces a warning
about the upcoming changes to `git add` behavior.

To remove this warning and make `git add` behave like we want it, now and in
coming Git versions, we added the `--all` switch to the call (as suggested in
the aforementioned warning). This will include removals as well as additions in
the index.
11 years ago
Nevik Rehnel 930d1d1957 Add some more comments 11 years ago
Nevik Rehnel 7788b7cbfd Only use one inotifywait instance, fix quoting
As detailed in #14, this improves usage of inotifywait: instead of calling inw
once per loop-run, it is launched once and its output piped into this script.
To facilitate this in an economic manner, a sleep period after a captured event
is added (it acts exactly as it did before this change). Should new events
occur while a waiting period is already running, that sleep process is killed
and a new one started. This groups together rapid events. The -s switch keeps
its functionality.

As mentioned in the issue, a big credit goes out to @datag, since the idea and
structure for this feature are taken from
datag/confcan@bcff79bc77.

Also fixes quoting (and quote-parsing) issues in a few places. These became
apparent in the inotifywait call (which is prepared as a string, from which
quotes arguments are not processed like normal unless `eval` is used). Testing
revealed a few quoting weaknesses in other places, where a path containing
whitespace would cause errors. Most of these should be fixed for now.

Closes #14.
11 years ago
Nevik Rehnel 72090b30ee Add help about env vars for binaries 11 years ago
Nevik Rehnel f7a992e379 Construct push command only once
Move checking and construction of push command out of main loop so construction
is only done once (push command does not change during script execution.
11 years ago
Nevik Rehnel b3fc585539 Move echo'ing of errors to function 11 years ago