Build a single C++ file. Use when a single .cc file needs to be compiled to check for errors.
日本語の概要は準備中です。原文の説明を表示しています。
apache/impala1,2902026年10月10日 更新
Combines all git commits for a change into a single commit and pushes it to gerrit. Use when you push to gerrit.
インストール方法を見るインストールする前に、エージェントに与えられる指示の中身を確認できます。
Use git-fixup-push when you have multiple commits for a change and want to combine them into a single commit before pushing to gerrit. Changes to Impala are managed in gerrit, and each change is represented as a single git commit. Use git-fixup-push to meld multiple commits into a single commit that can be pushed to gerrit.
--force, --force-with-lease, hard reset).git remote -v.git diff --cached --quiet (exit code 1 means staged changes exist).git diff --quiet (exit code 1 means unstaged tracked
changes exist).git log -1 --pretty=%B.^[A-Za-z0-9._-]+$.git remote get-url asf-gerritgit remote get-url --push asf-gerrit.agents/skills/git-fixup-push/scripts/fixup.sh - Script to combine multiple
commits into a single commit.
Run with the --help argument to see usage instructions. Run with the --dry-run
argument to see the exact command that would be executed without actually running it.
The script selects commits from the most recent IMPALA-<id> commit through HEAD.
If that matching commit is already HEAD, the script exits without squashing.asf-gerrit remote and URLs.
ssh://<username>@gerrit.cloudera.org:29418/Impala-ASF.git remote get-url asf-gerrit and git remote get-url --push asf-gerrit.<username>.<username> against ^[A-Za-z0-9._-]+$.<username> is invalid, abort.<username> is valid, run:
git remote add asf-gerrit ssh://<username>@gerrit.cloudera.org:29418/Impala-ASF<username>.<username> against ^[A-Za-z0-9._-]+$.<username> is invalid, abort.<username> is valid, run:
git remote set-url asf-gerrit ssh://<username>@gerrit.cloudera.org:29418/Impala-ASFgit remote set-url --push asf-gerrit ssh://<username>@gerrit.cloudera.org:29418/Impala-ASFgit commit -m "WIP: commit staged files"stage: run exactly git add -ustash: run git stash push --keep-index -m "stashed by git-fixup-push skill".
Record that a stash was created; Step 9 will pop it after a successful push.stage or stash, abort.git commit -m "WIP: commit staged files".agents/skills/git-fixup-push/scripts/fixup.sh${IMPALA_HOME} exactly:
./bin/jenkins/critique-gerrit-review.py --dryrungit commit -m "fixed critique issues"Assisted-by: trailer is present on HEAD.
git log -1 --pretty=%B | git interpret-trailers --only-trailers --unfoldAssisted-by: trailer is already present, do nothing and continue.git interpret-trailers and add exactly:
Assisted-by: <model> (<agent-name>) where <model> is the name of the language
model and <agent-name> is the name of the agent executing this skill.tmp_msg="$(mktemp)"git log -1 --pretty=%B | git interpret-trailers --if-exists=doNothing --trailer "Assisted-by: <model> (<agent-name>)" > "$tmp_msg"git commit --amend -F "$tmp_msg"rm -f "$tmp_msg"Change-Id: in the final trailer paragraph.git push asf-gerrit HEAD:refs/drafts/mastergit stash popgit stash pop exits non-zero, report the error and stop; do not abort
silently (the push already succeeded).Change-Id: to be in the final footer paragraph of the commit message.
Keep all trailer lines contiguous in that last paragraph (for example, Change-Id: and
Assisted-by: should be adjacent, with no blank line between them).remote.<name>.pushurl explicitly set. In that case,
git remote get-url --push <name> may still resolve via remote.<name>.url.git stash push --keep-index stashes only unstaged tracked changes and preserves staged
changes for the next commit step.まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Build a single C++ file. Use when a single .cc file needs to be compiled to check for errors.
日本語の概要は準備中です。原文の説明を表示しています。