Build a single C++ file. Use when a single .cc file needs to be compiled to check for errors.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
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.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.