git: 960c12f7d5aa - main - Revert "WIP: Cross-user git arc stage"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Apr 2025 11:00:04 UTC
The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=960c12f7d5aab90f6963f7f629f8ec55ce767af2 commit 960c12f7d5aab90f6963f7f629f8ec55ce767af2 Author: Andrew Turner <andrew@FreeBSD.org> AuthorDate: 2025-04-08 10:59:26 +0000 Commit: Andrew Turner <andrew@FreeBSD.org> CommitDate: 2025-04-08 10:59:26 +0000 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 9bee35831844..7d2387565b9a 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()