mirror of
https://github.com/opnsense/src.git
synced 2026-06-06 15:22:34 -04:00
WIP: Cross-user git arc stage
This commit is contained in:
parent
1c6170d771
commit
4ed2c3f9ce
1 changed files with 12 additions and 6 deletions
|
|
@ -243,12 +243,18 @@ title2diff()
|
|||
local title
|
||||
|
||||
title=$(echo $1 | sed 's/"/\\"/g')
|
||||
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]*"))
|
||||
}
|
||||
}'
|
||||
#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]*"))
|
||||
# }
|
||||
# }'
|
||||
|
||||
echo "{
|
||||
\"queryKey\": \"all\",
|
||||
\"constraints\": { \"query\": \"title:${title}\" } }" |
|
||||
arc_call_conduit -- differential.revision.search |
|
||||
jq -r ".response.data[] | select(.fields.title=\"${title}\") | @text \"D\( .id )\""
|
||||
}
|
||||
|
||||
commit2diff()
|
||||
|
|
|
|||
Loading…
Reference in a new issue