[Info-vax] source control and semantics (Re: Why so much Unix envy?)
Stephen Hoffman
seaohveh at hoffmanlabs.invalid
Sat Sep 13 09:13:06 EDT 2014
On 2014-09-13 01:49:23 +0000, Craig A. Berry said:
> Actually most modern version control tools do not treat the source as
> plain text because at the most fundamental level they don't treat it as
> text at all: it's just arbitrary content....
> <http://hgbook.red-bean.com/read/handling-repository-events-with-hooks.html>
>
> And also note that you can typically ignore whitespace-only changes
> when looking through history with such options as "git diff
> --ignore-space-change".
Yep. Piping the incoming source code through a pretty-printer during
the version-control check-in process is common practice.
It'd also be handy to have the project's preferred source code format
available via your preferred IDE or editor, too. Yes, as well as
whatever format the particular programmer prefers to use. Xcode
doesn't have innate features that provide this, but there are Xcode
extensions that allow you to selectively reformat the source code, and
that really helps even when you're just initially entering the source
code. Eclipse or NetBeans also undoubtedly have source code formatters
available. You can go nuts here with emacs and vim, too.
<http://stackoverflow.com/questions/149558/recommended-vim-plugins-for-c-coding>
Combine this with continuous integration and build bots and related,
and things can get much more interesting than is common in classic VMS
environments.
--
Pure Personal Opinion | HoffmanLabs LLC
More information about the Info-vax
mailing list