git-r3.eclass: Document EGIT_COMMIT* <=> EGIT_BRANCH, #612852
authorMichał Górny <mgorny@gentoo.org>
Sat, 18 Mar 2017 09:16:12 +0000 (10:16 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sat, 18 Mar 2017 09:17:28 +0000 (10:17 +0100)
Document the relation between EGIT_COMMIT* and EGIT_BRANCH variables.

eclass/git-r3.eclass

index f8ea81b5ac87fc7da6e474d5bbb3782c272cc6ae..1b49f66f5f00e52c7a2e8dcb1d7aa312e4f9e9b3 100644 (file)
@@ -153,8 +153,9 @@ fi
 # @DEFAULT_UNSET
 # @DESCRIPTION:
 # The tag name or commit identifier to check out. If unset, newest
-# commit from the branch will be used. If set, EGIT_BRANCH will
-# be ignored.
+# commit from the branch will be used. Note that if set to a commit
+# not on HEAD branch, EGIT_BRANCH needs to be set to a branch on which
+# the commit is available.
 #
 # It can be overriden via env using ${PN}_LIVE_COMMIT variable.
 
@@ -162,7 +163,8 @@ fi
 # @DEFAULT_UNSET
 # @DESCRIPTION:
 # Attempt to check out the repository state for the specified timestamp.
-# The date should be in format understood by 'git rev-list'.
+# The date should be in format understood by 'git rev-list'. The commits
+# on EGIT_BRANCH will be considered.
 #
 # The eclass will select the last commit with commit date preceding
 # the specified date. When merge commits are found, only first parents