This is an archive of the discontinued LLVM Phabricator instance.

Update 'git push' command in GettingStarted guide
ClosedPublic

Authored by dcaballe on May 14 2020, 1:42 PM.

Details

Summary

'git push' command, without any other arguments, can do different
things depending on the local configuration of Git. However, it
won't push your local 'arcpatch-D<Revision>' to the remote 'master'
branch by default. This patch updates the 'git push' command with
the extra arguments needed to commit 'arcpatch-D<Revision>' to the
remote 'master' branch.

Diff Detail

Event Timeline

dcaballe created this revision.May 14 2020, 1:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 14 2020, 1:42 PM
mehdi_amini added inline comments.May 14 2020, 9:21 PM
llvm/docs/Phabricator.rst
218

The generic way of pushing would rather be I believe: git push origin HEAD:master what about using this instead? It is closer to ensuring you're pushing what you just tested (we should like tell folks to check that their local state is clean as well)

(note that origin is read-only locally for me, but I assume that for such doc we can assume a "default" setup)

echristo added inline comments.
llvm/docs/Phabricator.rst
218

+1

dcaballe marked an inline comment as done.May 14 2020, 10:52 PM
dcaballe added inline comments.
llvm/docs/Phabricator.rst
218

It sounds good! I'll give it a try in my next commit and change it. Thanks!

dcaballe updated this revision to Diff 265104.May 19 2020, 5:47 PM

Changing to git push origin HEAD:master

tstellar added inline comments.
llvm/docs/Phabricator.rst
218

I would even take this a step further and replace origin with the full repo name e.g.

git push https://github.com/llvm/llvm-project.git HEAD:master

I think the documentation should give instructions that are guaranteed to work regardless of the user's configuration.

dcaballe updated this revision to Diff 265288.May 20 2020, 9:51 AM

It sounds good, thanks.
Replacing 'origin' with 'https://github.com/llvm/llvm-project.git' in git pull and push commands.

I'm still ok with this :)

mehdi_amini accepted this revision.May 29 2020, 5:47 PM

LGTM

llvm/docs/Phabricator.rst
218

I think the documentation should give instructions that are guaranteed to work regardless of the user's configuration.

Documentation for developer can be skewed towards providing instruction in a usable form: I'm not gonna type the complete URL!

This revision is now accepted and ready to land.May 29 2020, 5:47 PM
This revision was automatically updated to reflect the committed changes.