{"thread":{"id":"13669","subject":"[cogito-0.18.2] Documentation/Code Mismatch: cg-switch -l","startedAt":"2008-05-26T11:18:37Z","lastAt":"2008-05-26T12:19:04Z","messageCount":2,"participants":["Mark Lawrence","Andreas Ericsson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"77767","messageId":"20080526111837.GA17429@lifebook.rekudos.net","threadId":"13669","inReplyTo":null,"subject":"[cogito-0.18.2] Documentation/Code Mismatch: cg-switch -l","fromName":"Mark Lawrence","fromEmail":"nomad@null.net","sentAt":"2008-05-26T11:18:37Z","receivedAt":"2008-05-26T11:18:37Z","isPatch":false,"sender":{"key":"nomad@null.net","avatar":null},"body":"Hi,\n\nI don't know if this is a bug or just my understanding, but I'm having\ntrouble matching the behaviour of \"cg-switch -l\" with the documentation.\n\nAccording to the docs, -l means that:\n                                                ... local changes will\n  be \"kept\" with your previous branch, you will get a pristine tree of\n  the new branch and when you switch back to the original branch you\n  will also get back the local changes.\n\nHowever if I run \"cg-switch -l -c testing\" on a dirty (ie with local\nchanges) repository I do not get a pristine tree. In fact, it appears \nthe local changes are carried over.\n\nInitial state:\n\n    mlawren@lifebook:/tmp/x$ cg-status\n    Heads:\n        >master     6a8a774cd1fb84f48f906a9ce3322a5ac94deb00\n       R origin     cdc9a7857b93b00f515b010c9aeadda4e649b92a\n\n    ? Changes\n    ? META.yml\n    ? Makefile\n    ? blib/\n    ? inc/\n    ? pm_to_blib\n    ? t/benchmark.pl\n    ? t/cache.t\n    ? t/hyphens.t\n    ? t/synopsis.t\n    ? x\n    M MANIFEST\n    M Makefile.PL\n    M debian/changelog\n    M debian/control\n    M lib/XML/API.pm\n    A lib/XML/API/Cache.pm\n    M lib/XML/API/RSS.pm\n    M lib/XML/API/XHTML.pm\n    M t/02-langs.t\n    M t/03-XML-API.t\n    A t/04-parse.t\n\nCreate a new local branch and check status:\n\n    mlawren@lifebook:/tmp/x$ cg-switch -l -c testing\n    Creating new branch testing: 6a8a774cd1fb84f48f906a9ce3322a5ac94deb00\n    Switching to branch testing...\n\n    mlawren@lifebook:/tmp/x$ cg-status\n    Heads:\n        master     6a8a774cd1fb84f48f906a9ce3322a5ac94deb00\n      R origin     cdc9a7857b93b00f515b010c9aeadda4e649b92a\n        >testing    6a8a774cd1fb84f48f906a9ce3322a5ac94deb00\n\n    ? Changes\n    ? META.yml\n    ? Makefile\n    ? blib/\n    ? inc/\n    ? pm_to_blib\n    ? t/benchmark.pl\n    ? t/cache.t\n    ? t/hyphens.t\n    ? t/synopsis.t\n    ? x\n    M MANIFEST\n    M Makefile.PL\n    M debian/changelog\n    M debian/control\n    M lib/XML/API.pm\n    A lib/XML/API/Cache.pm\n    M lib/XML/API/RSS.pm\n    M lib/XML/API/XHTML.pm\n    M t/02-langs.t\n    M t/03-XML-API.t\n    A t/04-parse.t\n\nWhy do I still have all these modified and additional files? I fully\nexpected to still see the '?' file not under git/cogito control. However\nthe uncommitted changes are still all present.\n\nI am also confused by the existence of the '-p' option, which by my\nreading implies pretty much the same condition as if you *don't* specify\n-l.\n\nRegards,\nMark.\n-- \nMark Lawrence\n"},{"id":"77769","messageId":"483AAAB8.1090705@op5.se","threadId":"13669","inReplyTo":"20080526111837.GA17429@lifebook.rekudos.net","subject":"Re: [cogito-0.18.2] Documentation/Code Mismatch: cg-switch -l","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2008-05-26T12:19:04Z","receivedAt":"2008-05-26T12:19:04Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Mark Lawrence wrote:\n> Hi,\n> \n> I don't know if this is a bug or just my understanding, but I'm having\n> trouble matching the behaviour of \"cg-switch -l\" with the documentation.\n> \n\nCogito became officially unmaintained a very long time ago (late 2006?)\nand will almost certainly not work properly with any half-recent version\nof git. Don't use it.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"}]}