I use this subject line for git topics I want to discuss, and I
encourage others to do the same as they continue (along with me) to
learn more about git.

As you are probably aware from my recent discussions with Pedro I
recommend using

git commit --amend

if your changes continue for exactly the same topic, i.e., your
commits would otherwise be a series of approximations to the final
commit version (e.g., for dealing with a particular bug).

Currently I am using the above git command a lot for my topic branch
for a large update to our DocBook documentation. However, I noticed
from "git log" results that the author date was stuck on November
30th, i.e., when I started making this series of amended commits, and
instead I want the author date to correspond to when I finish this
series of amended commits.  (Which should happen "real soon now".  :-) )

One google search later (using the search terms <git commit amend
author date>) I found
<http://stackoverflow.com/questions/9110310/update-git-commit-author-date-when-amending>
and tried one suggestion that looked promising there which was

git commit --amend --reset-author

Since the author is the same (me) nothing happens due to this command
other than the desired side effect that the author date becomes
current again.  Anyhow, this suggestion worked like a charm!

So I ended up resolving the issue in 5 minutes which is an
illustration of the fact that there are huge numbers of expert git
users out there willing to share their knowledge, and google is your
friend for quickly finding this expert knowledge on any git topic.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to