{"thread":{"id":"7397","subject":"Question regarding: git pull --no-commit origin","startedAt":"2007-03-25T23:32:05Z","lastAt":"2007-03-26T02:17:50Z","messageCount":5,"participants":["Geoff Russell","Shawn O. Pearce","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"37970","messageId":"93c3eada0703251632s3be48b60na03728ce72b8ab8c@mail.gmail.com","threadId":"7397","inReplyTo":null,"subject":"Question regarding: git pull --no-commit origin","fromName":"Geoff Russell","fromEmail":"geoffrey.russell@gmail.com","sentAt":"2007-03-25T23:32:05Z","receivedAt":"2007-03-25T23:32:05Z","isPatch":false,"sender":{"key":"geoffrey.russell@gmail.com","avatar":"https://gravatar.com/avatar/c30f497ccfa6bf06d86f30bd2ba092a2dd124c61c6bc902f7cb5c3f6486947de?d=mp&s=160"},"body":"Hi,\n\nI'm using version 1.5.0.5\n\nI do: git pull --no-commit origin\n\nReceive messages ending in:\n\n        ...\n       Updating 6a29cdd..b7ba33d\n       Fast forward\n       interface/testfile |    1 +\n       1 files changed, 1 insertions(+), 0 deletions(-)\n       create mode 100644 interface/testfile\n\nMy working directory is correctly updated. I assume that I can make further mods\nand then commit.\n\nHowever when I do: git commit -a\n\nI'm told: nothing to commit (working directory clean)\n\nAm I misunderstanding something?\n\nCheers,\nGeoff Russell\n"},{"id":"37974","messageId":"20070325233823.GA13247@spearce.org","threadId":"7397","inReplyTo":"93c3eada0703251632s3be48b60na03728ce72b8ab8c@mail.gmail.com","subject":"Re: Question regarding: git pull --no-commit origin","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-03-25T23:38:23Z","receivedAt":"2007-03-25T23:38:23Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Geoff Russell <geoffrey.russell@gmail.com> wrote:\n> I do: git pull --no-commit origin\n> \n> Receive messages ending in:\n> \n>        ...\n>       Updating 6a29cdd..b7ba33d\n>       Fast forward\n>       interface/testfile |    1 +\n>       1 files changed, 1 insertions(+), 0 deletions(-)\n>       create mode 100644 interface/testfile\n...\n> However when I do: git commit -a\n> \n> I'm told: nothing to commit (working directory clean)\n> \n> Am I misunderstanding something?\n\nThe pull was strictly a fast-forward.  No merge commit was necessary\nto record the merge, so we didn't actually honor the --no-commit\nargument.\n\nIn other words, your current branch did not contain any commits\nthat were not in the origin branch you were pulling from.  So\na real merge wasn't required here.\n\n-- \nShawn.\n"},{"id":"37981","messageId":"93c3eada0703251816lc430e03l71ee2ffaa3d8796@mail.gmail.com","threadId":"7397","inReplyTo":"20070325233823.GA13247@spearce.org","subject":"Re: Question regarding: git pull --no-commit origin","fromName":"Geoff Russell","fromEmail":"geoffrey.russell@gmail.com","sentAt":"2007-03-26T01:16:09Z","receivedAt":"2007-03-26T01:16:09Z","isPatch":false,"sender":{"key":"geoffrey.russell@gmail.com","avatar":"https://gravatar.com/avatar/c30f497ccfa6bf06d86f30bd2ba092a2dd124c61c6bc902f7cb5c3f6486947de?d=mp&s=160"},"body":"On 3/26/07, Shawn O. Pearce <spearce@spearce.org> wrote:\n> Geoff Russell <geoffrey.russell@gmail.com> wrote:\n> > I do: git pull --no-commit origin\n> >\n> > Receive messages ending in:\n> >\n> >        ...\n> >       Updating 6a29cdd..b7ba33d\n> >       Fast forward\n> >       interface/testfile |    1 +\n> >       1 files changed, 1 insertions(+), 0 deletions(-)\n> >       create mode 100644 interface/testfile\n> ...\n> > However when I do: git commit -a\n> >\n> > I'm told: nothing to commit (working directory clean)\n> >\n> > Am I misunderstanding something?\n>\n> The pull was strictly a fast-forward.  No merge commit was necessary\n> to record the merge, so we didn't actually honor the --no-commit\n> argument.\n>\n> In other words, your current branch did not contain any commits\n> that were not in the origin branch you were pulling from.  So\n> a real merge wasn't required here.\n\nThanks Shawn, but my situation is I have the MASTER repository and I'm\npulling from a TEST repository. I want to double\ncheck the updates other people have done\non the TEST repository, and if they are okay, then commit them.\n\nIf --no-commit won't let me do this then perhaps I need something like:\n\n          git pull origin:testing\n          git checkout testing\n           .... test\n          git checkout master ; git pull . testing\n\ni.e., make a branch for the test changes and then merge this branch.\n\nCheers,\nGeoff\n>\n> --\n> Shawn.\n>\n"},{"id":"37983","messageId":"20070326014757.GA28592@coredump.intra.peff.net","threadId":"7397","inReplyTo":"93c3eada0703251816lc430e03l71ee2ffaa3d8796@mail.gmail.com","subject":"Re: Question regarding: git pull --no-commit origin","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2007-03-26T01:47:58Z","receivedAt":"2007-03-26T01:47:58Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Mar 26, 2007 at 10:46:09AM +0930, Geoff Russell wrote:\n\n> If --no-commit won't let me do this then perhaps I need something like:\n> \n>          git pull origin:testing\n>          git checkout testing\n>           .... test\n>          git checkout master ; git pull . testing\n\nClose.  Remember that a pull is basically a fetch + merge; so your first\ncommand is just the fetch:\n\n  # fetches everything from origin\n  git fetch\n  # see what they have that we don't\n  git whatchanged HEAD..origin/testing\n  # check out their code in more detail\n  git checkout origin/testing\n  # or even make our own branch in case we have tweaks to make\n  git checkout -b testing origin/testing\n  # and once we're OK, do the merge\n  git checkout master; git merge origin/testing\n\nAll of that assumes git 1.5 or greater, which uses the separate remote\nlayout and has some interface improvements. For older versions, their\n'testing' branch will be pulled into your 'testing' branch, and I\nbelieve you will need to 'git pull . testing' to merge it.\n\n-Peff\n"},{"id":"37986","messageId":"93c3eada0703251917j3ed8702dvc622bb94a1e5e8af@mail.gmail.com","threadId":"7397","inReplyTo":"20070326014757.GA28592@coredump.intra.peff.net","subject":"Re: Question regarding: git pull --no-commit origin","fromName":"Geoff Russell","fromEmail":"geoffrey.russell@gmail.com","sentAt":"2007-03-26T02:17:50Z","receivedAt":"2007-03-26T02:17:50Z","isPatch":false,"sender":{"key":"geoffrey.russell@gmail.com","avatar":"https://gravatar.com/avatar/c30f497ccfa6bf06d86f30bd2ba092a2dd124c61c6bc902f7cb5c3f6486947de?d=mp&s=160"},"body":"On 3/26/07, Jeff King <peff@peff.net> wrote:\n> On Mon, Mar 26, 2007 at 10:46:09AM +0930, Geoff Russell wrote:\n>\n> > If --no-commit won't let me do this then perhaps I need something like:\n> >\n> >          git pull origin:testing\n> >          git checkout testing\n> >           .... test\n> >          git checkout master ; git pull . testing\n>\n> Close.  Remember that a pull is basically a fetch + merge; so your first\n> command is just the fetch:\n>\n>   # fetches everything from origin\n>   git fetch\n>   # see what they have that we don't\n>   git whatchanged HEAD..origin/testing\n>   # check out their code in more detail\n>   git checkout origin/testing\n>   # or even make our own branch in case we have tweaks to make\n>   git checkout -b testing origin/testing\n>   # and once we're OK, do the merge\n>   git checkout master; git merge origin/testing\n>\n> All of that assumes git 1.5 or greater, which uses the separate remote\n> layout and has some interface improvements. For older versions, their\n> 'testing' branch will be pulled into your 'testing' branch, and I\n> believe you will need to 'git pull . testing' to merge it.\n>\n> -Peff\n>\n\nOk, that's all nice and clear now. Many thanks.\n\nGeoff.\n"}]}