don't let people delete their code.
- Python 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| LICENSE | ||
| main.py | ||
| README.md | ||
watch_dogs_gitter
plain and simple, don't let people delete their code.
example of config file:
[watcher]
clone_url = https://github.com/torvalds/linux.git
repo = torvalds/linux
branch = master
atom_url = https://github.com/torvalds/linux/commits/master.atom
workdir = /tmp/watchdog-linux
output_dir = ~/watchdog-tarballs
last_commit_file = ~/.cache/watchdog_last_commit
poll_interval = 300
then run it , it will keep a daemon.
you should see a output like this:
hashirama@lisp-machine ~$ python .local/bin/watch_dogs_gitter.py
[+] Archiving 2dcc15fa187ffbda03a6316cff9951e711db9244
Cloning into '/mnt/Data/Git_Data/workdir'...
remote: Enumerating objects: 848, done.
remote: Counting objects: 100% (11/11), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 848 (delta 8), reused 8 (delta 8), pack-reused 837 (from 1)
Receiving objects: 100% (848/848), 56.69 MiB | 632.00 KiB/s, done.
Resolving deltas: 100% (396/396), done.
Updating files: 100% (222/222), done.
Note: switching to '2dcc15fa187ffbda03a6316cff9951e711db9244'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 2dcc15f improved structure
[✓] Saved to /mnt/Data/Git_Data/Files/kiwakiwaa_monokakido-to-yomitan_2dcc15fa187ffbda03a6316cff9951e711db9244.tar.gz