Git (assembla) - Syntax to refer to a previous changeset in a commit message

Does git have any official syntax that can be inserted into commit messages to reference previous changesets? E.g.:

Oops. Adding files accidentally missed out from #7557bd82e2d0c7335319392b4bcb178ce0b9620f

Or does Git not bother defining these, and leaves that up to the tool that is used to display the messages (e.g. Github or Assembla)?

In which case, does anyone know if Assembla has any such syntax, hopefully to convert the reference into a link to that changeset? If GitHub has syntax for this then Assembla probably copied them...

Answers


In Git, there is no such thing as "previous commit". There is a previous commit at a given point, but after a merge, a new commit might come to the branch and be inserted between "current commit" and "previous commit".

However, Assembla can link to a specific commit in git changeset logs. If you know the exact sha or HEAD you want to link to, you can use Assembla's markup:

Here are some examples:

[[r:c27dbd5d84dfa9302c47a26196221c921c7d8c12|link to sha]]
[[r:c27dbd5d84dfa9302c47a26196221c921c7d8c12]]
[[url:www.assembla.com/code/<:space>/git/nodes/master|link to head]]

Here are those examples in action: https://www.assembla.com/code/bobo-titas/git/nodes/867b914329

More information about Assembla's linking can be found in the "create new wiki page" page.


Need Your Help

python parsing input, making a sum of the input

python parsing loops percentage readlines

I am attempting to parse a file with the following format

jQuery won't clear form

javascript php jquery forms

I KNOW this question has been asked numerous times as I have used this website's solutions to no avail. I currently have this implementation:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.