Article View: comp.sources.bugs
Article #576Tiny, but useful, patch for RCS 4.3
From: Chip Salzenberg
Date: Wed, 02 Jan 1991 19:07
Date: Wed, 02 Jan 1991 19:07
22 lines
1098 bytes
1098 bytes
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
Technical Details
Message-ID:
<27822F70.E5A@tct.uucp>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!bu.edu!rpi!julius.cs.uiuc.edu!wuarchive!uunet!pdn!tscs!tct!chipShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!bu.edu!rpi!julius.cs.uiuc.edu!wuarchive!uunet!pdn!tscs!tct!chip From: chip@tct.uucp (Chip Salzenberg) Newsgroups: comp.sources.bugs,comp.sources.d Subject: Tiny, but useful, patch for RCS 4.3 Message-ID: <27822F70.E5A@tct.uucp> Date: 2 Jan 91 19:07:28 GMT Followup-To: comp.sources.d Organization: Teltronics/TCT, Sarasota, FL Lines: 22