Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [GSoC microproject help] Allow "-" as a short-hand for "@{-1}" in more places

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:04:00

Sundararajan R [off-list ref] writes:
Although I have been using git from a long time, this is 
the first occasion when I have picked up reading its source code. Can 
somebody please help me by telling me how to start off with the above 
mentioned microproject?
A good place to start on the specific coding side is to see how
existing changes for the same objective were done.

Hints:

  Does reading "git log --grep='@{-1}'" help you?  When was @{-1}
  introduced, and how is it connected to the "-" short-hand that is
  exposed to the end-user by what mechanism in commits surrounding
  the one that introduces the @{-1} mechanism?

  Does reading "git grep '@{-1}'" help you?  Where does it appear?
  What code interprets it to find the last branch before you
  switched and how?  Who calls that code?  Is there something that
  turns a user-supplied "-" into "@{-1}" before calling that code?
  What did that caller looked like before it started noticing "-"?
  Does running "git blame -L<line range>" on that caller help you to
  find out which commit made the change, and does running "git show"
  on that commit help you understand how the change was done?

At the same time, GSoC is about working _with_ the development
community, so another good place to start (you need to start on both
fronts) is to subscribe and read this mailing list and also to dig
the list archive (hint: the search interface of gmane often let you
find gems) to understand how other people propose new changes and
how their changes are discussed, reviewed and polished.  You'll be
part of that kind of exchanges yourself once you become part of the
project.

Welcome.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help