{"thread":{"id":"3433","subject":"[PATCH] git-push: Update documentation to describe the no-refspec behavior.","startedAt":"2006-02-22T04:28:50Z","lastAt":"2006-02-22T04:28:50Z","messageCount":1,"participants":["Carl Worth"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"16561","messageId":"87k6borp8d.wl%cworth@cworth.org","threadId":"3433","inReplyTo":null,"subject":"[PATCH] git-push: Update documentation to describe the no-refspec behavior.","fromName":"Carl Worth","fromEmail":"cworth@cworth.org","sentAt":"2006-02-22T04:28:50Z","receivedAt":"2006-02-22T04:28:50Z","isPatch":true,"sender":{"key":"cworth@cworth.org","avatar":"https://gravatar.com/avatar/3746dc28cde609bdbd7f939058356e7e2bbd16d21e32274df0725eb3d998bc5b?d=mp&s=160"},"body":"It turns out that the git-push documentation didn't describe what it\nwould do when not given a refspec, (not on the command line, nor in a\nremotes file). This is fairly important for the user who is trying to\nunderstand operations such as:\n\n\tgit clone git://something/some/where\n\t# hack, hack, hack\n\tgit push origin\n\nI tracked the mystery behavior down to git-send-pack and lifted the\nrelevant portion of its documentation up to git-push, (namely that all\nrefs existing both locally and remotely are updated).\n\nSigned-off-by: Carl Worth <cworth@cworth.org>\n\n\n---\n\n Documentation/git-push.txt |    6 ++++++\n 1 files changed, 6 insertions(+), 0 deletions(-)\n\na42f22171f6f3004e524b45b16a9c5cf0386ccf3\ndiff --git a/Documentation/git-push.txt b/Documentation/git-push.txt\nindex 5b89110..6f4a48a 100644\n--- a/Documentation/git-push.txt\n+++ b/Documentation/git-push.txt\n@@ -43,6 +43,12 @@ to fast forward the remote ref that matc\n the optional plus `+` is used, the remote ref is updated\n even if it does not result in a fast forward update.\n +\n+Note: If no explicit refspec is found, (that is neither\n+on the command line nor in any Push line of the\n+corresponding remotes file---see below), then all the\n+refs that exist both on the local side and on the remote\n+side are updated.\n++\n Some short-cut notations are also supported.\n +\n * `tag <tag>` means the same as `refs/tags/<tag>:refs/tags/<tag>`.\n-- \n1.2.2.gfdc0\n\n"}]}