{"thread":{"id":"24042","subject":"Searching for sha1 id, finding a specific commit","startedAt":"2010-06-08T11:50:55Z","lastAt":"2010-06-08T11:58:22Z","messageCount":2,"participants":["Bjarne","Andreas Ericsson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"143224","messageId":"loom.20100608T134934-783@post.gmane.org","threadId":"24042","inReplyTo":null,"subject":"Searching for sha1 id, finding a specific commit","fromName":"Bjarne","fromEmail":"bjarne_l@yahoo.se","sentAt":"2010-06-08T11:50:55Z","receivedAt":"2010-06-08T11:50:55Z","isPatch":false,"sender":{"key":"bjarne_l@yahoo.se","avatar":null},"body":"I've searched a lot trying to find is there are a way to find a specific commit.\nUse case:\nI fixed a bug and want to paste a unique direct link in my bugtracker tool to\nthe commit, or simple one click search in gitweb.\n\nSince the commit name is not unique, this isn't good enough. I'm sure there is a\nway but i cant find it.\n\nRegards Bjarne\n"},{"id":"143225","messageId":"4C0E305E.80704@op5.se","threadId":"24042","inReplyTo":"loom.20100608T134934-783@post.gmane.org","subject":"Re: Searching for sha1 id, finding a specific commit","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2010-06-08T11:58:22Z","receivedAt":"2010-06-08T11:58:22Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"On 06/08/2010 01:50 PM, Bjarne wrote:\n> I've searched a lot trying to find is there are a way to find a specific commit.\n> Use case:\n> I fixed a bug and want to paste a unique direct link in my bugtracker tool to\n> the commit, or simple one click search in gitweb.\n> \n> Since the commit name is not unique, this isn't good enough. I'm sure there is a\n> way but i cant find it.\n> \n\ngit log --grep=\"something you wrote in the commit message\"\n  or\ngit log -S'something you wrote in the patch'\n\nshould, with some searching from within less, provide you\nwith the unique sha1 id which you can then use to construct\na url to gitweb.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n\nConsidering the successes of the wars on alcohol, poverty, drugs and\nterror, I think we should give some serious thought to declaring war\non peace.\n"}]}