<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We currently don't have any tags for mainline trunk, since we usually<br>
don't directly release from it.<br></blockquote><div><br></div><div>I would like to know how you usually release. Can you map a commit to a release, if you can't, then we may use another simpler method.</div><div><br></div><div>$parent-$commit$dirty</div><div><br></div><div>That would give you info enought to checkout either the $parent, if you don't have access to $commit, and to know that something was changed in $commit.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">How does the script know which one is the right upstream?<br></blockquote><div>It's hardcoded in the version script. If remote doesn't exist, I can inject it temporarily, bad thing is that I would need to fetch upstream to be able to compare AFAIK. If the remote does exist, I can just generate it from there (don't need to have latest commit to know where they forked)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If I see such a string, how do I look up the last OpenWrt commit from<br>
that? With the revision number, I simply start git log and search for<br>
@<number><br></blockquote><div>The number of commits are just for people that comes from SVN to feel comfortable. You don't really need them. You can have the number of previous commits if you wish, but is not needed really (it might be an indicative on how much work there is)</div><div><br></div><div>We could do fancy things like instead of logging the number of commits, log the number of diff lines.</div><div><br></div><div>$parent-$commit-$difflines$dirty.</div><div><br></div><div>However I find this rather disturbing and even privacy compromising.</div><div><br></div><div>I think I could provide the proper solution if you tell me what you thing would be useful for you to have.</div></div></div>