From 960c12f7d5aab90f6963f7f629f8ec55ce767af2 Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Tue, 8 Apr 2025 11:59:26 +0100 Subject: [PATCH] Revert "WIP: Cross-user git arc stage" It shouldn't have been pushed This reverts commit 4ed2c3f9ce28df401fc427bd60a8e3d9ecb40f4d. --- tools/tools/git/git-arc.sh | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/tools/tools/git/git-arc.sh b/tools/tools/git/git-arc.sh index 9bee3583184..7d2387565b9 100644 --- a/tools/tools/git/git-arc.sh +++ b/tools/tools/git/git-arc.sh @@ -243,18 +243,12 @@ 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]*")) - # } - # }' - - echo "{ - \"queryKey\": \"all\", - \"constraints\": { \"query\": \"title:${title}\" } }" | - arc_call_conduit -- differential.revision.search | - jq -r ".response.data[] | select(.fields.title=\"${title}\") | @text \"D\( .id )\"" + 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]*")) + } + }' } commit2diff()