diff --git a/src/GitInfo/build/GitInfo.targets b/src/GitInfo/build/GitInfo.targets index a226d92..9e51ba0 100644 --- a/src/GitInfo/build/GitInfo.targets +++ b/src/GitInfo/build/GitInfo.targets @@ -52,6 +52,14 @@ will be used to find a base version. Defaults to empty value (no ignoring). + $(GitNameRevOptions): Options passed to git name-rev when finding + a branch name for a commit (Detached head). + The default is '--refs=refs/heads/*' + meaning branch names only. For the legacy behavior where + $(GitBranch) for detached head can also be a tag name, + use '--refs=refs/*'. + Refs can be included and excluded, see git name-rev docs. + $(GitSkipCache): whether to cache the Git information determined in a previous build in a GitInfo.cache for performance reasons. @@ -92,6 +100,8 @@ false + --refs=refs/heads/* + 2.5.0 @@ -428,7 +438,7 @@ -