Commit Graph

201 Commits (d22e186654ad0dcf2963ccdb33013ce782383680)
 

Author SHA1 Message Date
Nevik Rehnel f4e77f1d04 Change option letter for push, expand help message
Change the option letter for auto-pushing after a commit from -p (for 'push') to
-r (for 'remote') since I think that makes a bit more sense.
Expand the help on auto-pushing.
11 years ago
Nevik Rehnel de21cf061d Add option to customize the timestamp format
Add a new -d switch with which to customize the format of the timestamp inserted
into the commit message.
This prepares commit message customization as mentioned in #8.
11 years ago
Nevik Rehnel 61ef92cf04 Add some more inotify events as mentioned in #13 11 years ago
Nevik Rehnel 9bfca75959 Add option to customize sleep time after a change
A new option -s N now customizes the sleep time after detecting a change to N
seconds (the parameter is directly passed into `sleep`.
Closes #7.
11 years ago
Nevik Rehnel 0e149ca1a8 Add some comments. Add @datag as contributor. 12 years ago
Nevik Rehnel 4e55eaa3ad Merge datag/gitwatch@7c34782d (testing) into testing, closing PR #11. 12 years ago
Dominik D. Geyer 7c34782d9a Provide function is_command() and check for multiple dependencies 12 years ago
Dominik D. Geyer ac999af602 Partly reverted change of 7215554b and use dirname again
- The bash string manipulation ${var%/*} behaves different to dirname,
  e.g. paths like "/" and "/foo" return empty string
- Quote argument to dirname as preparation for using whitespace in paths
12 years ago
Dominik D. Geyer 3a54d02edd Cosmetics: Be consistent with command substitution syntax 12 years ago
Dominik D. Geyer 7215554ba6 Cosmetics: Use bash string manipulation instead of basename/dirname 12 years ago
Dominik D. Geyer 7346b37a0d Test for number of script arguments to be 1 after shifting options 12 years ago
Dominik D. Geyer 9473048fdf Cosmetics: Make use of here-string instead of using piped echo 12 years ago
Dominik D. Geyer e3ca99840f Exit with code 1 and message if target is neither a regular file nor a directory 12 years ago
Dominik D. Geyer b82d406108 Cosmetics: Whitespace fix 12 years ago
Dominik D. Geyer f17e9d68c4 Cosmetics: Syntax/whitespace change 12 years ago
Dominik D. Geyer c85025d456 Prerequisites check: Test for non-zero value
Also, use alternate syntax for which-test and exit with non-zero exit
code for git-test as well.
12 years ago
Dominik D. Geyer 9f71f494eb Cosmetics: Syntax/whitespace fixes 12 years ago
Dominik D. Geyer d9fc7297e9 Cosmetics: Use bash-specific redirection
Redirect both stdout and stderr to /dev/null.
Requires bash version >= 4.
12 years ago
Dominik D. Geyer 9751094c0e Make use of /usr/bin/env in shebang 12 years ago
Nevik Rehnel 825fde087b Expand help/usage message, improving fix for #1. 12 years ago
Nevik Rehnel 95d6a4176c Add newline at end of file. Fix comment formatting (hash then space then text) 12 years ago
Nevik Rehnel 1c822907c3 Shift input arguments so code referencing first arg still works 12 years ago
Nevik Rehnel d8096cad4d Fix if conditions for auto-pushing.
After committing the changes to the repo, the script tests if the auto-push
variables are set, to see if the push should be done. The conditions for these
if branches were exactly the wrong way around. This is now fixed.
12 years ago
Nevik Rehnel 25b5f13cab Merge commit MatthewM/gitwatch@e3869ff (testing) into testing 12 years ago
Matthew McGowan e3869ffdc5 Added comments to the new code 12 years ago
Matthew McGowan 73f31173fb Fixed a typo in README.md 12 years ago
Matthew McGowan dd6e4073eb Forgot to add *~ for a backup file 12 years ago
Matthew McGowan 6a5e99bc63 Added a .gitignore 12 years ago
Nevik Rehnel 9481d7e21c Merge commit MatthewM/gitwatch@c14644f (testing) into testing 12 years ago
Matthew McGowan c14644fd3d Updated README.md to reflect the command line param changes 12 years ago
Matthew McGowan 2666870800 Added both the -p and -b options 12 years ago
Matthew McGowan 218872eee8 Added a basic help that includes some features that will be added later 12 years ago
Nevik Rehnel ecfbee9e7a Add note about contributions, naming MatthewM 12 years ago
Nevik Rehnel ce30fb2d45 Merge commit '744ceab', modified from MatthewM/gitwatch@c5f06ad . Closes PR #1 12 years ago
Nevik Rehnel 744ceab97b Replace 'hash' with 'which' to check for command availability 12 years ago
Matthew McGowan c5f06ad358 Added a check for git and inotifywait 12 years ago
Nevik Rehnel f496b1e849 Use Markup paragraph spacings instead of <br>'s 12 years ago
Eidolon Night ffecb0fdd9 Update README.md 12 years ago
Eidolon Night 562b8dfcbc Update README.md 12 years ago
Nevik Rehnel 1c0337f7ca Fix typo 12 years ago
Nevik Rehnel bc8f0d4b18 Add "documents" use case to examples list.
As suggested by Karl Voit.
12 years ago
Nevik Rehnel 74f94fef08 Add script name to commit msg and comments.
Added "gitwatch.sh" to commit message (as per suggestion from Karl Voit).
Made commit message a bit more modular, and set its parts in vars at the top of
the script.
Added comments explaining some lines of the script.
12 years ago
Nevik Rehnel 628f1fb5bb Remove commented-out debug code 12 years ago
Nevik Rehnel 40e0ea3d84 Add line about feedback and comments 12 years ago
Nevik Rehnel 7a0932f7e4 Add details about script workings and usage 12 years ago
Nevik Rehnel 6211e30971 Merge branch 'master' of github.com:n3v1k/gitwatch 12 years ago
Nevik Rehnel fe0e7a9786 Add full GPLv3 license text 12 years ago
Nevik Rehnel 6a9ec5e95d Update README.md
Add section about possible uses for the script
12 years ago
Nevik Rehnel 727284da14 Update README.md 12 years ago
Nevik Rehnel e15fa371c1 Add current version of script to repo.
Added the current version of the shell script to the repository; file now
includes the GPL license text (the short version that is usually included
in source files.
12 years ago