Guillaume Berche
0397e468d8
Add new -R option triggering a git pull --rebase ( #121 )
...
Fix #88
2 months ago
Dave Musicant (home machine)
45c629ce6b
Updated feature for notify ignore
5 months ago
imlzo
f895a5db27
106: Option to skip commit if repo has ongoing merge ( #107 )
2 years ago
Alan Young
5b82546152
ran gitwatch.sh through shfmt -s
3 years ago
Alan Young
8680fc47b6
ran gitwatch.sh through shfmt (options -i 2 -bn -ci -sr)
3 years ago
Alan Young
b361dea0d7
fix word splitting failure
3 years ago
Alan Young
9f82d555cf
made shellcheck quiet
3 years ago
hesk
255d385a17
Use different exit code for each error condition
3 years ago
hesk
32bf8872a0
Add ability to configure path for readline
3 years ago
hesk
35987b5cf2
Fix: exclude .git repository on macOS
3 years ago
Joachim Nicolay
8cb0c827c0
double-double-quote target directory to support pathes with spaces
4 years ago
Tin Lai
5e6b68bdcb
add no pager
4 years ago
Matt Kotsenas
011b982e72
Add 'modify' event as well
4 years ago
Matt Kotsenas
fc17c7def4
Update inotifywait parameters to also watch move_self
...
Update the parameters to `inotifywait` to also watch `move_self`, as vim uses it on linux (at least on Ubuntu 18.04)
4 years ago
Dave Musicant
40bcd27b1b
Merge pull request #81 from juanmancebo/master
...
Fixed git inotifywait exclude args
4 years ago
juan.mancebo
5f35eedf7d
clean git inotifywait exclude args
4 years ago
juan.mancebo
1d7e7f8b0f
Fixed git inotifywait exclude args
4 years ago
Tero Niemi
493dd0a38a
Fixing EVENTS also in the Darvin side.
...
Using VAR="${VAR:-defaults}" structure.
4 years ago
Tero Niemi
4d086834fb
Fixed the broken -e command line option
...
In the original the defaults always overwrote the option.
4 years ago
Dave Musicant at home
8a7c37279a
cleaned up typo
5 years ago
Dave Musicant
a341c1eb96
Merge pull request #67 from vogler/is_command_hash
...
is_command should use hash instead of which
5 years ago
Ralf Vogler
9233d8d6c0
macOS: try greadlink -f, then readlink -f, then readlink and warn about it
5 years ago
Ralf Vogler
41bde82710
is_command: use bash builtin hash instead of which
5 years ago
Dave Musicant
a0acf8aa79
Fixed shebang
5 years ago
Andrey Astafyev
d1d9721314
Exit on wrong option
5 years ago
Andrey Astafyev
0729d1965f
Check if directory changing is possible
5 years ago
Andrey Astafyev
9875612281
Arguments to INW command stored in array
5 years ago
Andrey Astafyev
00c26dde5c
Apply fixes for some of shellcheck warnings
5 years ago
Andrey Astafyev
e6ae00a4c7
Remove trailing whitespaces
5 years ago
Andrey Astafyev
089576cf0b
Typos fixes
5 years ago
Dave Musicant / thinkpad
759aa1aace
Enabled OS X functionality with fswatch.
5 years ago
Dave Musicant / thinkpad
11a2eab5db
cleaned up GIT_DIR portion to only add parameters as necessary
5 years ago
Dave Musicant / thinkpad
f34a7545d5
Remote dir functionality added, tests improved, variable added to delay timing in tests
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 / thinkpad
295ad233fc
Added some author names to stackoverflow references.
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
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
Nevik Rehnel
c0408ff8f1
Add '-u' switch to git-add invocation. Closes #25
9 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
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
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