{"thread":{"id":"38731","subject":"[GSoC microproject help] Allow \"-\" as a short-hand for \"@{-1}\" in more places","startedAt":"2015-03-06T20:05:50Z","lastAt":"2015-03-06T20:43:04Z","messageCount":3,"participants":["Sundararajan R","Junio C Hamano","Akshay Aurora"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"257191","messageId":"loom.20150306T210409-558@post.gmane.org","threadId":"38731","inReplyTo":null,"subject":"[GSoC microproject help] Allow \"-\" as a short-hand for \"@{-1}\" in more places","fromName":"Sundararajan R","fromEmail":"dyoucme@gmail.com","sentAt":"2015-03-06T20:05:50Z","receivedAt":"2015-03-06T20:05:50Z","isPatch":false,"sender":{"key":"dyoucme@gmail.com","avatar":null},"body":"Hi All,\n\nI am a sophomore at Indian Institute of Technology Kanpur and am a GSoC \naspirant for git. Although I have been using git from a long time, this is \nthe first occasion when I have picked up reading its source code. Can \nsomebody please help me by telling me how to start off with the above \nmentioned microproject?\n\nThank you very much.\n"},{"id":"257193","messageId":"xmqqpp8lyi99.fsf@gitster.dls.corp.google.com","threadId":"38731","inReplyTo":"loom.20150306T210409-558@post.gmane.org","subject":"Re: [GSoC microproject help] Allow \"-\" as a short-hand for \"@{-1}\" in more places","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2015-03-06T20:37:38Z","receivedAt":"2015-03-06T20:37:38Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Sundararajan R <dyoucme@gmail.com> writes:\n\n> Although I have been using git from a long time, this is \n> the first occasion when I have picked up reading its source code. Can \n> somebody please help me by telling me how to start off with the above \n> mentioned microproject?\n\nA good place to start on the specific coding side is to see how\nexisting changes for the same objective were done.\n\nHints:\n\n  Does reading \"git log --grep='@{-1}'\" help you?  When was @{-1}\n  introduced, and how is it connected to the \"-\" short-hand that is\n  exposed to the end-user by what mechanism in commits surrounding\n  the one that introduces the @{-1} mechanism?\n\n  Does reading \"git grep '@{-1}'\" help you?  Where does it appear?\n  What code interprets it to find the last branch before you\n  switched and how?  Who calls that code?  Is there something that\n  turns a user-supplied \"-\" into \"@{-1}\" before calling that code?\n  What did that caller looked like before it started noticing \"-\"?\n  Does running \"git blame -L<line range>\" on that caller help you to\n  find out which commit made the change, and does running \"git show\"\n  on that commit help you understand how the change was done?\n\nAt the same time, GSoC is about working _with_ the development\ncommunity, so another good place to start (you need to start on both\nfronts) is to subscribe and read this mailing list and also to dig\nthe list archive (hint: the search interface of gmane often let you\nfind gems) to understand how other people propose new changes and\nhow their changes are discussed, reviewed and polished.  You'll be\npart of that kind of exchanges yourself once you become part of the\nproject.\n\nWelcome.\n"},{"id":"257194","messageId":"CAPGnZZ=12707HPSfGmqSMohdoT4h+Y13+vBGT6AX_Syr4Onx8w@mail.gmail.com","threadId":"38731","inReplyTo":"loom.20150306T210409-558@post.gmane.org","subject":"Re: [GSoC microproject help] Allow \"-\" as a short-hand for \"@{-1}\" in more places","fromName":"Akshay Aurora","fromEmail":"akshayaurora@yahoo.com","sentAt":"2015-03-06T20:43:04Z","receivedAt":"2015-03-06T20:43:04Z","isPatch":false,"sender":{"key":"akshayaurora@yahoo.com","avatar":"https://gravatar.com/avatar/07e443d5c5589cab6f36170d55ab46619245b0d58bcb3d8e017e3652f614e856?d=mp&s=160"},"body":"Hi Sundararajan,\n\nWelcome to Git Community.\n\nYou need to look for commands dealing with branches, and allow  '-' as\nshorthand for @{-1}.\n\nYou can look at patches already sent for this microproject. One of the\nstudents has already started working on git reset command [0].\n\nJunio, has raised some key issues you'll need to tackle on that\nthread. Hopefully it should get you started.\n\nMake sure the existing tests pass after making changes. You might also\nneed to add a new test case for your microproject.\n\n[0] - http://thread.gmane.org/gmane.comp.version-control.git/264688\n\nOn Sat, Mar 7, 2015 at 1:35 AM, Sundararajan R <dyoucme@gmail.com> wrote:\n> Hi All,\n>\n> I am a sophomore at Indian Institute of Technology Kanpur and am a GSoC\n> aspirant for git. Although I have been using git from a long time, this is\n> the first occasion when I have picked up reading its source code. Can\n> somebody please help me by telling me how to start off with the above\n> mentioned microproject?\n>\n> Thank you very much.\n>\n> --\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n\n\n\n-- \nAA\n"}]}