Skip to content

Commit d672bac

Browse files
author
Martin Hoch hoch@fidion.de
committed
Don't add Header in append mode.
1 parent f50914f commit d672bac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bootstrap.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@
229229
}
230230

231231
$mode = ($options['sort'] == 'yes' ? 1 : ($options['sort'] == 'foldcase' ? 2 : 0));
232+
233+
if (!isset($options['a'])) {
232234
$tagline = <<<EOF
233235
!_TAG_FILE_FORMAT\t2\t/extended format; --format=1 will not append ;" to lines/
234236
!_TAG_FILE_SORTED\t{$mode}\t/0=unsorted, 1=sorted, 2=foldcase/
@@ -237,6 +239,7 @@
237239
!_TAG_PROGRAM_URL\thttps://github.com/techlivezheng/phpctags\t/official site/
238240
!_TAG_PROGRAM_VERSION\t${version}\t//\n
239241
EOF;
242+
}
240243

241244
fwrite($tagfile, $tagline.$result);
242245
fclose($tagfile);

0 commit comments

Comments
 (0)