Today I wanted to discover the author, commit id, and the date for a
commit that created a particular line in a file (the restore_cmap1()
line in examples/python/xw08.py which has no C counterpart).  After a bit of
searching I discovered the "git blame" command which did exactly what I
wanted.  So I was getting all enthused about this great new capability
possible with git, when I checked back with subversion. It turned out
subversion has the similar "svn blame" capability (albeit with much
more limited features than "git blame") which I was completely unaware
of when using subversion all those years!

So I wish I had discovered "svn blame" long ago, but at least I can
happily use "git blame" now.  Furthermore, for those PLplot developers
not yet aware of the "git blame" command, it is well worth trying now
on your own so you can get a feel for how useful it can be when we
have a git history that goes back to 1992.

In this case, it turned out the line in question was actually
committed by me in 2002 and has quietly been working well ever since.
The point was to do exactly what it says for those cases when a bunch
of different python examples are strung together as one giant script,
and this restore of cmap1 eliminates cmap1 cross-talk between those
scripts. I was concerned that might create a different PostScript file
result for Python, but since restore_cmap1 call has been there since
2002 with no issues like that, I have to look elsewhere for the source
of the recently introduced one-line diff I am getting between the
plsurf3dl Python and C results for example 8.

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
__________________________

------------------------------------------------------------------------------
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to