[comp.sources.d] Tiny, but useful, patch for RCS 4.3

chip@tct.uucp (Chip Salzenberg) (01/03/91)

With the default RCS behavior, it is often difficult to perform mass
changes on the current revision of many files simultaneously.  This
one-line patch makes the string "HEAD" always refer to the head of the
revision history, i.e. the current revision.


Index: rcsrev.c
***************
*** 575,578 ****
--- 575,579 ----
  {
          register struct assoc * next;
+         if (strcmp(id,"HEAD") == 0 && Head) return Head->num;
          next = Symbols;
          while (next!=nil) {


I told you it was tiny.  :-)
-- 
Chip Salzenberg at Teltronics/TCT     <chip@tct.uucp>, <uunet!pdn!tct!chip>
"Please don't send me any more of yer scandalous email, Mr. Salzenberg..."
		-- Bruce Becker