Currently the only way to view the tfs checkin id is by using the git log command. As any other git users, I have my prettified git log, so I'd like to include the tfs checkin id flag into my git logs.
It would also be a plus if there's a flag I can use for my prettified log to know if a commit is a local git commit or a tfs checkin commit.
Here's my git alias to return the last ten commits:
[alias]
ten = log --pretty=format:\"%C(yellow)%h%Creset %ad %C(green)%s %Creset[%an]\" --graph --date=short --no-merges -10
I'd like to achieve something like this:
[alias]
ten = log --pretty=format:\"%C(yellow)%h%Creset %ad %CONDITIONAL(IF %TFSCHECKINID NOT NULL){%C(red)[%TFSCHECKINID]} %C(green)%s %Creset[%an]\" --graph --date=short --no-merges -10
It should appear like this:
* xxxxxx yyyy-mm-dd [C9999] This is a TFS checkin [Anonymous]
* xxxxxx yyyy-mm-dd This is a local git commit [Anonymous]