{"thread":{"id":"38690","subject":"[GSoC15] Interested in contributing to git","startedAt":"2015-03-03T15:56:11Z","lastAt":"2015-03-03T18:14:30Z","messageCount":4,"participants":["Paul Tan","Matthieu Moy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"256908","messageId":"CACRoPnSrjysUhC77LXVjy5VJxFFPoiRuhD7pMab_8T2Pua_T+A@mail.gmail.com","threadId":"38690","inReplyTo":null,"subject":"[GSoC15] Interested in contributing to git","fromName":"Paul Tan","fromEmail":"pyokagan@gmail.com","sentAt":"2015-03-03T15:56:11Z","receivedAt":"2015-03-03T15:56:11Z","isPatch":false,"sender":{"key":"pyokagan@gmail.com","avatar":"https://avatars.githubusercontent.com/u/109479?v=4"},"body":"Hi all,\n\ngit is one of the projects that I wish to contribute to for Google\nSummer of Code 2015 as it's an integral part of my workflow. I'm from\nSingapore, and have been accepted to the National University of\nSingapore for Computer Engineering, and will only matriculate on 3 Aug\n2015. I have experience in programming with Python, C and C++, and\nhave successfully submitted patches to projects such as libuv[1] and\nnode-contextify[2].\n\n[1]: https://github.com/joyent/libuv/commit/347000929de775ae6b975a2959f5fabe81d6f1f0\n[2]: https://github.com/brianmcd/contextify/commit/7e3e0a89779cd892b3d8604795b6675d6aecff17\n\nI understand that I have to complete a microproject. I would like\ncomplete \"Move ~/.git-credentials and ~/.git-credential-cache to\n~/.config/git\". I'm thinking that the XDG locations should take\nprecedence over the non-XDG locations?\n\nFor the project, I am interested in implementing \"git fetch --deepen\"\nbecause I use the shallow clone feature quite often. I'm looking over\nthe source code to see how difficult it would be to implement it :)\n\nThanks,\nPaul\n"},{"id":"256911","messageId":"vpqbnkagiie.fsf@anie.imag.fr","threadId":"38690","inReplyTo":"CACRoPnSrjysUhC77LXVjy5VJxFFPoiRuhD7pMab_8T2Pua_T+A@mail.gmail.com","subject":"Re: [GSoC15] Interested in contributing to git","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2015-03-03T16:20:25Z","receivedAt":"2015-03-03T16:20:25Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Paul Tan <pyokagan@gmail.com> writes:\n\n> Hi all,\n>\n> git is one of the projects that I wish to contribute to for Google\n> Summer of Code 2015 as it's an integral part of my workflow. I'm from\n> Singapore, and have been accepted to the National University of\n> Singapore for Computer Engineering, and will only matriculate on 3 Aug\n> 2015.\n\nBe carefull: a GSoC is a full-time job. The GSoC itself ends on August\n21st, so there would be a substantial (too big?) overlap between the\nGSoC and your studies.\n\n> I understand that I have to complete a microproject. I would like\n> complete \"Move ~/.git-credentials and ~/.git-credential-cache to\n> ~/.config/git\". I'm thinking that the XDG locations should take\n> precedence over the non-XDG locations?\n\nThe logic is different for reading and for writting, see how Git deals\nwith it for ~/.gitconfig for example. Essentially, we read both, and we\nwrite to the one which exists if there's only one.\n\nI'm the one who proposed this microproject, and some feedback on the\nmailing-list was that it was not so \"micro\" and probably too big\nalready.\n\nBoth for the microproject and the GSoC itself, don't be too ambitious on\nthe feature you target, and don't underestimate the effort needed to get\nfrom \"the code looks OK to me\" to \"the code has been reviewed on list\nand merged upstream\".\n\nCheers,\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"256916","messageId":"CACRoPnTAFXBRR3uv8gL8tGfYNo_ygNutJZuPm=Sq0Ae3obF-kw@mail.gmail.com","threadId":"38690","inReplyTo":"vpqbnkagiie.fsf@anie.imag.fr","subject":"Re: [GSoC15] Interested in contributing to git","fromName":"Paul Tan","fromEmail":"pyokagan@gmail.com","sentAt":"2015-03-03T18:08:26Z","receivedAt":"2015-03-03T18:08:26Z","isPatch":false,"sender":{"key":"pyokagan@gmail.com","avatar":"https://avatars.githubusercontent.com/u/109479?v=4"},"body":"Hi Matthieu,\n\nOn Wed, Mar 4, 2015 at 12:20 AM, Matthieu Moy\n<Matthieu.Moy@grenoble-inp.fr> wrote:\n> Be carefull: a GSoC is a full-time job. The GSoC itself ends on August\n> 21st, so there would be a substantial (too big?) overlap between the\n> GSoC and your studies.\n\nI understand. I will have to try my best to complete most of the work\nbefore then.\n\n>> I understand that I have to complete a microproject. I would like\n>> complete \"Move ~/.git-credentials and ~/.git-credential-cache to\n>> ~/.config/git\". I'm thinking that the XDG locations should take\n>> precedence over the non-XDG locations?\n>\n> The logic is different for reading and for writting, see how Git deals\n> with it for ~/.gitconfig for example. Essentially, we read both, and we\n> write to the one which exists if there's only one.\n\nI will try to implement something similar. My idea for credential-store.c is:\n\n* For \"get\", lookup_credential() on the XDG file first if it exists,\nand if it fails call it on the home file.\n* For \"remove\", remove_credential() from both the xdg file and the home file.\n* For \"store\", if the XDG file exists store_credential() in the XDG\nfile and remove_credential() from the home file, otherwise just\nstore_credential() in the home file.\n* For all operations, if \"--file\" is provided, use it instead.\n\n> I'm the one who proposed this microproject, and some feedback on the\n> mailing-list was that it was not so \"micro\" and probably too big\n> already.\n> Both for the microproject and the GSoC itself, don't be too ambitious on\n> the feature you target, and don't underestimate the effort needed to get\n> from \"the code looks OK to me\" to \"the code has been reviewed on list\n> and merged upstream\".\n\nThanks, I will keep that in mind.\n\nAlso, quick question, where should the XDG tests go for\ngit-credential-store? I see t1306-xdg-files.sh and\nt0302-credentials-store.sh.\n\n> Cheers,\n>\n> --\n> Matthieu Moy\n> http://www-verimag.imag.fr/~moy/\n\nRegards,\nPaul\n"},{"id":"256917","messageId":"vpq8ufe9ce1.fsf@anie.imag.fr","threadId":"38690","inReplyTo":"CACRoPnTAFXBRR3uv8gL8tGfYNo_ygNutJZuPm=Sq0Ae3obF-kw@mail.gmail.com","subject":"Re: [GSoC15] Interested in contributing to git","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2015-03-03T18:14:30Z","receivedAt":"2015-03-03T18:14:30Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Paul Tan <pyokagan@gmail.com> writes:\n\n> Also, quick question, where should the XDG tests go for\n> git-credential-store? I see t1306-xdg-files.sh and\n> t0302-credentials-store.sh.\n\nI think both could make sense, but it will probably be more natural in\nt1306-xdg-files.sh. See what the other tests took like.\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"}]}