{"thread":{"id":"3655","subject":"First dumb question to the list :)","startedAt":"2006-03-16T17:49:16Z","lastAt":"2006-03-18T04:25:37Z","messageCount":3,"participants":["Paolo Ciarrocchi","Alex Riesen","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"17597","messageId":"4d8e3fd30603160949l655c4f9blb1e202eaf22fbfe@mail.gmail.com","threadId":"3655","inReplyTo":null,"subject":"First dumb question to the list :)","fromName":"Paolo Ciarrocchi","fromEmail":"paolo.ciarrocchi@gmail.com","sentAt":"2006-03-16T17:49:16Z","receivedAt":"2006-03-16T17:49:16Z","isPatch":false,"sender":{"key":"paolo.ciarrocchi@gmail.com","avatar":null},"body":"Hi all,\nI just installed git and cogito from Ubuntu Drapper,\nperformed a simple cg-clone git://URItoLinus2.6 linux2.6\nand aftwer more or less one hour I had a clone of Linus 2.6 tree.\nSo far so good.\n\nWhat I want to do is to simply keep my repository aligned with Linus\nso I simply have to do:\ncd linus2.6\ncg-fetch\n\nHow can I confg git in order to, by default,  use git instead of rsync ?\n\nNow my dumb question is... since I want to build that kernel do I have\nto locally clone/copy it in order to don't modify any file on my local\ntree?\nIf I don't do so, I guess git/cogito will not be happy when I run\ncg-fetch, right?\n\nThanks!\n\n--\nPaolo\n"},{"id":"17601","messageId":"20060316221104.GA5898@steel.home","threadId":"3655","inReplyTo":"4d8e3fd30603160949l655c4f9blb1e202eaf22fbfe@mail.gmail.com","subject":"Re: First dumb question to the list :)","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2006-03-16T22:11:04Z","receivedAt":"2006-03-16T22:11:04Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"Paolo Ciarrocchi, Thu, Mar 16, 2006 18:49:16 +0100:\n> What I want to do is to simply keep my repository aligned with Linus\n> so I simply have to do:\n> cd linus2.6\n> cg-fetch\n\nOr \"git pull\"\n\n> How can I confg git in order to, by default,  use git instead of rsync ?\n\nBy editing .git/remotes/origin and replacing \"rsync://rsync.\" with\n\"git://git.\" (I think the rest is identical, but you better check).\n\n> Now my dumb question is... since I want to build that kernel do I have\n> to locally clone/copy it in order to don't modify any file on my local\n> tree?\n\nNo. As long you don't modify anything under .git you can always get to\nany state of your kernel tree you ever had (assuming you _use_ git, of\ncourse).\n\nOr you can just revert your changes after you've played enough with\nthem: \"git reset --hard\".\n"},{"id":"17636","messageId":"20060318042537.GA32348@coredump.intra.peff.net","threadId":"3655","inReplyTo":"4d8e3fd30603160949l655c4f9blb1e202eaf22fbfe@mail.gmail.com","subject":"Re: First dumb question to the list :)","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2006-03-18T04:25:37Z","receivedAt":"2006-03-18T04:25:37Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Mar 16, 2006 at 06:49:16PM +0100, Paolo Ciarrocchi wrote:\n\n> performed a simple cg-clone git://URItoLinus2.6 linux2.6\n> [...]\n> What I want to do is to simply keep my repository aligned with Linus\n> so I simply have to do:\n> cd linus2.6\n> cg-fetch\n> [...]\n> How can I confg git in order to, by default,  use git instead of rsync ?\n\nIt should use the git protocol by default; cg-clone will make an\n'origin' branch (cogito doesn't support .git/remotes/ yet) pointing to\nthe original source. Future 'cg-fetch' invocations default to the origin\nbranch.\n\nTry using 'cg-branch-ls' to see what's on your origin branch.\n\n> Now my dumb question is... since I want to build that kernel do I have\n> to locally clone/copy it in order to don't modify any file on my local\n> tree?\n> If I don't do so, I guess git/cogito will not be happy when I run\n> cg-fetch, right?\n\ncg-fetch just pulls Linus' changes to your 'origin' head. You will then\nhave to cg-merge the changes into your branch. You can do both at once\nwith cg-update. If there are conflits, then cogito will notify you.\n\n-Peff\n"}]}