[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Condor-devel] RFC: git hooks as an aid to deprecating data structures or functions in the code
- Date: Fri, 06 Jul 2012 09:33:32 -0700
- From: Erik Erlandson <eje@xxxxxxxxxx>
- Subject: [Condor-devel] RFC: git hooks as an aid to deprecating data structures or functions in the code
We had a discussion at last flightworthy where there was general
agreement that we should deprecate some older condor structures in favor
of newer standards. For example, MyString -> std::string, or
classy_counted_ptr -> shared_ptr.
It would be fairly easy to write a git hook that did something as simple
as counting the occurrences of MyString in the "-" lines and the "+"
lines and rejected any commit where the "+" count was greater.
This would programmatically maintain the goal of not having new
instances of deprecated objects creep in, which is a significant
possibility, since things like MyString are prevalent and there's a lot
of inertia toward inadvertently continuing their use.