Custom Search

Friday, March 21, 2014

Git How to Find a commit id by searching in commit messages

1)
#git clone https://github.com/openstack/python-keystoneclient.git
#cd python-keystoneclient


2)
Search
------------

#git log --grep="Closes-Bug: 1047867"
commit 6cb1cd8c5a334406027c8859ba9b5a3abc07cca7
Author: Divyesh Khandeshi
Date:   Tue Jan 7 16:41:17 2014 -0500

    Consistently support kwargs across all v3 CRUD Manager ops
   
    Co-Authored-By: Saju Madhavan
    Closes-Bug: 1047867
    Implements: blueprint extensible-crud-manager-operations
    Change-Id: I64e11bcf3797eb84e4695605daea9749259d78ec

3)
https://github.com/openstack/python-keystoneclient/commit/6cb1cd8c5a334406027c8859ba9b5a3abc07cca7

Form the above link you can find the name of the tags. You can use that tag name to checkout stable version.

You can slso use following command to find the name of the tags (stable version) which contains our commit

#git tag --contains 6cb1cd8c5a334406027c8859ba9b5a3abc07cca7
0.5.0
0.5.1
0.6.0


4)
You can checkout form the tag like

#git checkout tags/0.6.0

5)
https://launchpad.net/ubuntu/+source/python-keystoneclient/1:0.6.0-0ubuntu1/+build/5616557

No comments:

Post a Comment