Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164869101
D43459.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D43459.diff
View Options
diff --git a/tools/tools/git/git-arc.sh b/tools/tools/git/git-arc.sh
--- a/tools/tools/git/git-arc.sh
+++ b/tools/tools/git/git-arc.sh
@@ -159,12 +159,12 @@
}
#
-# Filter the output of arc list to remove the warnings as above, as well as any
-# stray escape sequences that are in the list (it interferes with the parsing)
+# Filter the output of arc list to remove the warnings as above, as well as
+# the bolding sequence (the color sequence remains intact).
#
arc_list()
{
- arc list "$@" | sed 's/\x1b\[[0-9;]*m//g' | grep -v '^Warning: '
+ arc list "$@" | grep -v '^Warning: ' | sed -E 's/\x1b\[1m//g;s/\x1b\[m//g'
}
diff2phid()
@@ -219,7 +219,7 @@
local title
title=$(echo $1 | sed 's/"/\\"/g')
- arc_list |
+ arc_list --no-ansi |
awk -F': ' '{
if (substr($0, index($0, FS) + length(FS)) == "'"$title"'") {
print substr($1, match($1, "D[1-9][0-9]*"))
@@ -430,7 +430,7 @@
local chash commit commits diff openrevs title
commits=$(build_commit_list "$@")
- openrevs=$(arc_list)
+ openrevs=$(arc_list --ansi)
for commit in $commits; do
chash=$(git show -s --format='%C(auto)%h' "$commit")
@@ -449,7 +449,7 @@
awk -F'D[1-9][0-9]*: ' \
'{if ($2 == "'"$(echo $title | sed 's/"/\\"/g')"'") print $0}')
if [ -z "$diff" ]; then
- echo "No Review : $title"
+ echo "No Review : $title"
elif [ "$(echo "$diff" | wc -l)" -ne 1 ]; then
echo -n "Ambiguous Reviews: "
echo "$diff" | grep -E -o 'D[1-9][0-9]*:' | tr -d ':' \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 5, 9:29 AM (14 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36029068
Default Alt Text
D43459.diff (1 KB)
Attached To
Mode
D43459: git-arc: Retain color status messages
Attached
Detach File
Event Timeline
Log In to Comment