Thread: Is there any way to view the tag with git log ?

  1. #1
    Registered User
    Join Date
    Apr 2021
    Posts
    19

    Is there any way to view the tag with git log ?

    I need to use the following Git Log command:
    Code:
    git log --pretty=format:"Author: %an   Date: %as%nVersion: %h%nHistory: %s%n" > header.txt
    where I want to display the tag in the Version field. Can you tell me how to get it? I tried adding the --decorate option, but it doesn't change anything.

  2. #2
    Registered User
    Join Date
    Apr 2021
    Posts
    19
    I found the solution, to use the Placeholders %d to get the desired information:
    Code:
    git log  --pretty=format:"Author: %an   Date: %as%nVersion: %d%nHistory: %s%n"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 01-20-2013, 09:25 PM
  2. view plane when VRP and VPN are given
    By bos1234 in forum Game Programming
    Replies: 1
    Last Post: 05-15-2012, 04:50 PM
  3. view window
    By algi in forum Windows Programming
    Replies: 5
    Last Post: 03-12-2005, 10:11 AM
  4. Having the view know it is in focus
    By axr0284 in forum Windows Programming
    Replies: 4
    Last Post: 03-07-2005, 02:06 PM
  5. Help with Tree View
    By Unregistered in forum Windows Programming
    Replies: 7
    Last Post: 07-02-2002, 12:09 AM

Tags for this Thread