summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-11-11 05:44:59 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2016-11-11 05:46:07 (GMT)
commitf0677d301655d07a4df9ba92eabde2311bfc67f3 (patch)
tree71035d9b478b0dd152758a1f565f32cfabd0d666
parent069f113e5fd4bb49a5a994fcb59eb429de11441e (diff)
downloadabc80-f0677d301655d07a4df9ba92eabde2311bfc67f3.zip
abc80-f0677d301655d07a4df9ba92eabde2311bfc67f3.tar.gz
abc80-f0677d301655d07a4df9ba92eabde2311bfc67f3.tar.bz2
abc80-f0677d301655d07a4df9ba92eabde2311bfc67f3.tar.xz
revrom: mark if the working tree is modified
If the working tree doesn't match git, add a suffix. -dirty seems unnecessarily offensive, so use (mod) Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--data/revrom.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/revrom.pl b/data/revrom.pl
index cf2e033..0c6b38f 100644
--- a/data/revrom.pl
+++ b/data/revrom.pl
@@ -10,7 +10,7 @@ my $year = $now[5] + 1900;
my $mon = $now[4] + 1;
my $gitrev;
-if (open(my $gitrevfd, '-|', 'git', 'describe')) {
+if (open(my $gitrevfd, '-|', 'git', 'describe', '--dirty=(mod)')) {
$gitrev = <$gitrevfd>;
chomp $gitrev;
close($gitrevfd);