This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "theslinux-buildsystem". The branch, _utils has been updated via 47e65c539d37d47bcc29681545dc33fc06d04429 (commit) from 8467c328e0e8b2367b900d49e3d6961b54c4178f (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 47e65c539d37d47bcc29681545dc33fc06d04429 Author: Ky-Anh Huynh <kyanh@xxxxxxxxxxxxx> Date: Fri Jul 26 18:03:08 2013 +0700 Use "git rev-list" instead of "git log ..." to get a list of commits between two points, we simply use "git rev-list", this is just simple. "git log" is ok, too ----------------------------------------------------------------------- Summary of changes: _utils/run.sh | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/_utils/run.sh b/_utils/run.sh index f76798a..3938008 100755 --- a/_utils/run.sh +++ b/_utils/run.sh @@ -438,8 +438,8 @@ _get_package_feature() { _get_package_name ":feature" } -# Return the number of commits between two points. This will actually -# return number of commits that are on the `dest` and not on the `source`. +# Return a list of commits between two points. +# The starting point will not be listed in the output. # # ---*---o--------*----*----*----- thebigbang # \--*---*----*----*----*-- package branch @@ -460,18 +460,11 @@ _get_git_commits_between_two_points() { local _from="$1"; shift local _to="${1:-HEAD}"; shift - git log --pretty="format:%H" "$_from".."$_to" "$@" \ - | grep -E "^[a-f0-9]{40}$" - - # The 2nd `grep` is to filter output. If there is nothing found - # we still consider that is an valid. - [[ "${PIPESTATUS[0]}" -ge 1 || "${PIPESTATUS[1]}" -ge 2 ]] \ - || return 0 - - _err "Failed to get commits between two points '$_from' and '$_to'" + git rev-list "$_from".."$_to" "$@" \ + || _err "Failed to get commits between two points '$_from' and '$_to', opts => $@" } -# See also (_get_git_commits_between_two_points) +# Return the number of items from (_get_git_commits_between_two_points) # Input # $1 => The starting point (a branch name) # $2 => The end point (a branch name) hooks/post-receive -- theslinux-buildsystem -- Purpose: Store commits, feeds from other projects Post: mailto:theslinux-phantom@xxxxxxxxxxxxx Archive, Gmane: http://theslinux.org/lists/phantom/ Subscribe: mailto:theslinux-phantom-request@xxxxxxxxxxxxx?Subject=subscribe Unsubscribe: mailto:theslinux-phantom-request@xxxxxxxxxxxxx?Subject=unsubscribe Other information: http://theslinux.org/lists (vi) or http://theslinux.org/lists/en (en) Support: mailto:theslinux-questions@xxxxxxxxxxxxx