make `view diff on commit` a feature that is easy to use

Roman Neuhauser neuhauser at sigpipe.cz
Wed Nov 5 15:28:06 UTC 2014


# techtonik at gmail.com / 2014-11-05 17:43:34 +0300:
> I can't completely read `hgeditor` source. This stuff in particular:
>    grep '^HG: changed' "$1" | cut -b 13- | while read changed;

* grep lines starting with "HG: changed" from the file in $1
* strip the 13 leading bytes from each such line
* loop over those lines, putting the text of each in $changed

-- 
roman



More information about the Mercurial mailing list