forked from mackyle/topgit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
awk/ref_prefixes.awk: bring comments up to date
When the code was changed to add support for the nodef parameter, the explanatory comments got accidentally left behind. Update the comments to match the current behavior. Signed-off-by: Kyle J. McKay <[email protected]>
- Loading branch information
Showing
1 changed file
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/awk -f | ||
|
||
# ref_prefixes - TopGit awk utility script used by tg--awksome | ||
# Copyright (C) 2017,2019 Kyle J. McKay <[email protected]> | ||
# Copyright (C) 2017,2019,2021 Kyle J. McKay <[email protected]> | ||
# All rights reserved. | ||
# License GPLv2 | ||
|
||
|
@@ -18,6 +18,7 @@ | |
# second field of the line will be used otherwise the first | ||
# | ||
# prefix1 may not be a prefix of prefix2 or vice versa | ||
# if prefix1, prefix2 and/or prefixh are invalid exit status will be 2 | ||
# | ||
# if prefixh is non-empty then matches for prefix1 or prefix2 must also match | ||
# another line from the input after replacing the prefix1/prefix2 part with | ||
|
@@ -30,16 +31,17 @@ | |
# | ||
# ontput according to this table: | ||
# | ||
# any refs match any refs match noerr exit output | ||
# prefix1 prefix prefix2 prefix value status value | ||
# -------------- -------------- ----- ------ ------- | ||
# no no any 0 prefix1 | ||
# yes no any 0 prefix1 | ||
# no yes any 0 prefix2 | ||
# yes yes false 1 | ||
# yes yes true 0 prefix1 | ||
# any refs match any refs match noerr nodef exit output | ||
# prefix1 prefix prefix2 prefix value value status value | ||
# -------------- -------------- ----- ------ ------ ------- | ||
# no no any false 0 prefix1 | ||
# no no any true 66 | ||
# yes no any any 0 prefix1 | ||
# no yes any any 0 prefix2 | ||
# yes yes false any 65 | ||
# yes yes true any 0 prefix1 | ||
# | ||
# there is no output when exit status is 1 | ||
# there is no output when exit status is not 0 | ||
# the output value, if any, will have any trailing slash(es) removed from it | ||
# | ||
|
||
|