{"thread":{"id":"36079","subject":"gc/repack has no option to lose grafted parents","startedAt":"2014-03-06T23:07:06Z","lastAt":"2014-03-07T00:47:29Z","messageCount":4,"participants":["Martin Langhoff","Junio C Hamano","Duy Nguyen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"236215","messageId":"CACPiFCLqa=ZQM6Azh2G5hwBCMx96Cxa5BMN=-2aCy5x=YhBpGg@mail.gmail.com","threadId":"36079","inReplyTo":null,"subject":"gc/repack has no option to lose grafted parents","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2014-03-06T23:07:06Z","receivedAt":"2014-03-06T23:07:06Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"Back in http://git.661346.n2.nabble.com/PATCH-0-2-Make-git-gc-more-robust-with-regard-to-grafts-td3310281.html\nwe got gc/repack to be safer for users who might be shooting\nthemselves in the foot.\n\nWould a patch be welcome to add --discard-grafted-objects ? or\n--keep-real-parents=idontthinkso ?\n\ncheers,\n\n\n\nm\n-- \n martin.langhoff@gmail.com\n -  ask interesting questions\n - don't get distracted with shiny stuff  - working code first\n ~ http://docs.moodle.org/en/User:Martin_Langhoff\n"},{"id":"236220","messageId":"xmqqwqg6vrht.fsf@gitster.dls.corp.google.com","threadId":"36079","inReplyTo":"CACPiFCLqa=ZQM6Azh2G5hwBCMx96Cxa5BMN=-2aCy5x=YhBpGg@mail.gmail.com","subject":"Re: gc/repack has no option to lose grafted parents","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2014-03-06T23:26:06Z","receivedAt":"2014-03-06T23:26:06Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Martin Langhoff <martin.langhoff@gmail.com> writes:\n\n> Back in http://git.661346.n2.nabble.com/PATCH-0-2-Make-git-gc-more-robust-with-regard-to-grafts-td3310281.html\n> we got gc/repack to be safer for users who might be shooting\n> themselves in the foot.\n>\n> Would a patch be welcome to add --discard-grafted-objects ? or\n> --keep-real-parents=idontthinkso ?\n>\n> cheers,\n\nGiven that we in general frown upon long-term use of grafts (or\n\"replace\" for that matter), I am not sure if we want to go in that\ndirection.\n\nJust a knee-jerk reaction, though.\n"},{"id":"236222","messageId":"CACPiFCLgoGP59sW73YFCt8Wq4hpxZUb0PBF-DzHz0JdxrYo4rw@mail.gmail.com","threadId":"36079","inReplyTo":"xmqqwqg6vrht.fsf@gitster.dls.corp.google.com","subject":"Re: gc/repack has no option to lose grafted parents","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2014-03-06T23:36:49Z","receivedAt":"2014-03-06T23:36:49Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"On Thu, Mar 6, 2014 at 6:26 PM, Junio C Hamano <gitster@pobox.com> wrote:\n> Given that we in general frown upon long-term use of grafts (or\n> \"replace\" for that matter), I am not sure if we want to go in that\n> direction.\n>\n> Just a knee-jerk reaction, though.\n\nFair enough.\n\nIf I state my actual goals -- discarding old, uninteresting history,\nin a \"rolling\" fashion? (periodically using a script that says \"forget\nanything older than one month\") -- is there a better way?\n\nThe repository is not standalone, it receives pushes from hundreds of\nclients, and gets pulled from a couple of clients. All clients are \"in\nsync\", in that will be pulling every hour (vs a \"time window\" of one\nmonth).\n\nAt this stage, and with careful management (ie: custom gc scripts) git\nmakes for an excellent async log/report transfer tool. We specially\nappreciate that it has \"deep buffer\".\n\ncheers,\n\n\n\nm\n-- \n martin.langhoff@gmail.com\n -  ask interesting questions\n - don't get distracted with shiny stuff  - working code first\n ~ http://docs.moodle.org/en/User:Martin_Langhoff\n"},{"id":"236226","messageId":"CACsJy8BrnKPu=Uf5Qy1KoccorBJ43yo+R9P3PyVAeNU9FuCy6Q@mail.gmail.com","threadId":"36079","inReplyTo":"CACPiFCLgoGP59sW73YFCt8Wq4hpxZUb0PBF-DzHz0JdxrYo4rw@mail.gmail.com","subject":"Re: gc/repack has no option to lose grafted parents","fromName":"Duy Nguyen","fromEmail":"pclouds@gmail.com","sentAt":"2014-03-07T00:47:29Z","receivedAt":"2014-03-07T00:47:29Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Fri, Mar 7, 2014 at 6:36 AM, Martin Langhoff\n<martin.langhoff@gmail.com> wrote:\n> On Thu, Mar 6, 2014 at 6:26 PM, Junio C Hamano <gitster@pobox.com> wrote:\n>> Given that we in general frown upon long-term use of grafts (or\n>> \"replace\" for that matter), I am not sure if we want to go in that\n>> direction.\n>>\n>> Just a knee-jerk reaction, though.\n>\n> Fair enough.\n>\n> If I state my actual goals -- discarding old, uninteresting history,\n> in a \"rolling\" fashion? (periodically using a script that says \"forget\n> anything older than one month\") -- is there a better way?\n\nConvert it to a shallow repository? Either you clone it and do \"fetch\n--depth=XXX && prune\", or you manipulate $GIT_DIR/shallow directly\nthen prune (no worse than editing grafts, I think).\n-- \nDuy\n"}]}