File: post-commit

package info (click to toggle)
lensfun 1%3A0.3.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,672 kB
  • sloc: xml: 52,273; cpp: 7,831; ansic: 7,411; python: 1,725; sh: 17; ruby: 16; makefile: 13; javascript: 3
file content (14 lines) | stat: -rwxr-xr-x 418 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
#
# Updates the file data/db/timestamp.txt if the current commit has changed an
# XML database file.  You install these scripts by copying them into
# .git/hooks.  Watch out for existing hooks that you may overwrite there.

if [ -a .update_timestamp ]
then
    rm .update_timestamp
    date +%s > data/db/timestamp.txt
    git add data/db/timestamp.txt
    git commit --amend -C HEAD --no-verify
fi
exit 0