• Home
  • Raw
  • Download

Lines Matching +full:commit +full:- +full:message

1 Using Gerrit without git-cl
5 -----
9 This command sets up a Git commit-message hook to add a unique Change-Id to
10 each commit. Gerrit only accepts changes with a Change-Id and uses it to
13 experimental/tools/set-change-id-hook
20 git remote set-url origin 'https://skia.googlesource.com/skia.git'
24 --------------
26 Go to [skia.googlesource.com/new-password](https://skia.googlesource.com/new-password)
31 -----------------
35 git checkout -b TOPIC
39 git checkout -b TOPIC -t origin/main
41 2. Make a commit.
44 git commit --all --message 'Change Foo'
45 git log -1
47 `git log` should show that a Change-Id line has been added you your commit
48 message.
66 …[Gerrit Upload Documentation](https://gerrit-review.googlesource.com/Documentation/user-upload.htm…
70 bin/sysopen https://skia-review.googlesource.com/c/skia/+/$(bin/gerrit-number @)
73 -----------------
79 git commit --all --amend
81 Changes to the commit message will be sent with the push as well.
84 2. Re-squash if needed. (Not needed if you only amended your original commit.)
91 If you want to set a comment message for this patch set, do this instead:
93 M=$(experimental/tools/gerrit_percent_encode 'This is the patch set comment message!')
96 The title of this patch set will be "This is the patch set comment message!".
99 Triggering Commit-Queue Dry Run when you upload a patch
100 -------------------------------------------------------
102 M=$(experimental/tools/gerrit_percent_encode 'This is the patch set comment message!')
103 git push origin @:refs/for/main%l=Commit-Queue+1,m=$M
107 ------------------
111 git cl issue $(bin/gerrit-number @)
117 ---------
121 git config alias.gerrit-push 'push origin @:refs/for/main'
123 The following alias amends the head without editing the commit message:
125 git config alias.amend-head 'commit --all --amend --reuse-message=@'
129 git config alias.setcl '!git-cl issue $(bin/gerrit-number @)'
135 local MESSAGE="$(git log --format=%B ^@{upstream} @)"
136 git reset --soft $(git merge-base @ @{upstream})
137 git commit -m "$MESSAGE" -e
140 This shell script pushes to gerrit and adds a message to a patchset:
145 local MESSAGE="$(echo $*|sed 's/[^A-Za-z0-9]/_/g')"
146 git push "$REMOTE" "@:refs/for/${REMOTE_BRANCH}%m=${MESSAGE}"
151 …git config alias.squash-branch '!M="$(git log --format=%B ^@{u} @)";git reset --soft $(git merge-b…
153 …git config alias.gerrit-push-message '!f(){ git push origin @:refs/for/main%m=$(echo $*|sed "s/[^A
155 If your branch's upstream branch (set with `git branch --set-upstream-to=...`)
159 local UPSTREAM_FULL="$(git rev-parse --symbolic-full-name @{upstream})"
167 local MESSAGE="$(echo $*|sed 's/[^A-Za-z0-9]/_/g')"
168 echo git push $REMOTE @:refs/for/${REMOTE_BRANCH}%m=${MESSAGE}
169 git push "$REMOTE" "@:refs/for/${REMOTE_BRANCH}%m=${MESSAGE}"
174-push '!f()(F="$(git rev-parse --symbolic-full-name @{u})";case "$F" in (refs/remotes/*);;(*)echo …