Loading...
Searching...
No Matches
Keyword definitions

Keyword substitution. More...

## Macros

#define | SVN_KEYWORD_MAX_LEN 255
| The maximum size of an expanded or un-expanded keyword.
#define | SVN_KEYWORD_REVISION_LONG "LastChangedRevision"
| The most recent revision in which this file was changed.
#define | SVN_KEYWORD_REVISION_SHORT "Rev"
| Short version of LastChangedRevision.
#define | SVN_KEYWORD_REVISION_MEDIUM "Revision"
| Medium version of LastChangedRevision, matching the one CVS uses.
#define | SVN_KEYWORD_DATE_LONG "LastChangedDate"
| The most recent date (repository time) when this file was changed.
#define | SVN_KEYWORD_DATE_SHORT "Date"
| Short version of LastChangedDate.
#define | SVN_KEYWORD_AUTHOR_LONG "LastChangedBy"
| Who most recently committed to this file.
#define | SVN_KEYWORD_AUTHOR_SHORT "Author"
| Short version of LastChangedBy.
#define | SVN_KEYWORD_URL_LONG "HeadURL"
| The URL for the head revision of this file.
#define | SVN_KEYWORD_URL_SHORT "URL"
| Short version of HeadURL.
#define | SVN_KEYWORD_ID "Id"
| A compressed combination of the other four keywords.
#define | SVN_KEYWORD_HEADER "Header"
| A full combination of the first four keywords.

## Detailed Description

Keyword substitution.

All the keywords Subversion recognizes.

Note that there is a better, more general proposal out there, which would take care of both internationalization issues and custom keywords (e.g., $NetBSD$). See

       http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=8921
       =====
       From: "Jonathan M. Manning" <jmanning@alisa-jon.net>
       To: dev@subversion.tigris.org
       Date: Fri, 14 Dec 2001 11:56:54 -0500
       Message-ID: <87970000.1008349014@bdldevel.bl.bdx.com>
       Subject: Re: keywords

and Eric Gillespie's support of same:

       http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=8757
       =====
       From: "Eric Gillespie, Jr." <epg@pretzelnet.org>
       To: dev@subversion.tigris.org
       Date: Wed, 12 Dec 2001 09:48:42 -0500
       Message-ID: <87k7vsebp1.fsf@vger.pretzelnet.org>
       Subject: Re: Customizable Keywords

However, it is considerably more complex than the scheme below. For now we're going with simplicity, hopefully the more general solution can be done post-1.0.

## Macro Definition Documentation

## SVN_KEYWORD_AUTHOR_LONG

#define SVN_KEYWORD_AUTHOR_LONG "LastChangedBy"

Who most recently committed to this file.

Definition at line 660 of file svn_types.h.

## SVN_KEYWORD_AUTHOR_SHORT

#define SVN_KEYWORD_AUTHOR_SHORT "Author"

Short version of LastChangedBy.

Definition at line 663 of file svn_types.h.

## SVN_KEYWORD_DATE_LONG

#define SVN_KEYWORD_DATE_LONG "LastChangedDate"

The most recent date (repository time) when this file was changed.

Definition at line 654 of file svn_types.h.

## SVN_KEYWORD_DATE_SHORT

#define SVN_KEYWORD_DATE_SHORT "Date"

Short version of LastChangedDate.

Definition at line 657 of file svn_types.h.

## SVN_KEYWORD_HEADER

#define SVN_KEYWORD_HEADER "Header"

A full combination of the first four keywords.

Since
  New in 1.6.

Definition at line 676 of file svn_types.h.

## SVN_KEYWORD_ID

#define SVN_KEYWORD_ID "Id"

A compressed combination of the other four keywords.

Definition at line 672 of file svn_types.h.

## SVN_KEYWORD_MAX_LEN

#define SVN_KEYWORD_MAX_LEN 255

The maximum size of an expanded or un-expanded keyword.

Definition at line 641 of file svn_types.h.

## SVN_KEYWORD_REVISION_LONG

#define SVN_KEYWORD_REVISION_LONG "LastChangedRevision"

The most recent revision in which this file was changed.

Definition at line 644 of file svn_types.h.

## SVN_KEYWORD_REVISION_MEDIUM

#define SVN_KEYWORD_REVISION_MEDIUM "Revision"

Medium version of LastChangedRevision, matching the one CVS uses.

Since
  New in 1.1.

Definition at line 651 of file svn_types.h.

## SVN_KEYWORD_REVISION_SHORT

#define SVN_KEYWORD_REVISION_SHORT "Rev"

Short version of LastChangedRevision.

Definition at line 647 of file svn_types.h.

## SVN_KEYWORD_URL_LONG

#define SVN_KEYWORD_URL_LONG "HeadURL"

The URL for the head revision of this file.

Definition at line 666 of file svn_types.h.

## SVN_KEYWORD_URL_SHORT

#define SVN_KEYWORD_URL_SHORT "URL"

Short version of HeadURL.

Definition at line 669 of file svn_types.h.