Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • TortoiseGit TortoiseGit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 380
    • Issues 380
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 16
    • Merge requests 16
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • TortoiseGitTortoiseGit
  • TortoiseGitTortoiseGit
  • Issues
  • #1979
Closed
Open
Issue created Aug 02, 2015 by Sven Strickroth@mrtuxOwner

Comments are not stripped form commit template

By sschube... on November 07, 2013 08:25 (imported from Google Code)


What steps will reproduce the problem?

  1. Define a commit template using "git config commit.template message.txt"
  2. Make message.txt contain commented-out lines that start with "#"
  3. Do a commit, add a commit message in addition to the template lines (i.e. do not remove any comment from the template).

What is the expected output? What do you see instead?

I would expect that comments are stripped from the commit message / template when committing, just like when committing from the command line. Instead, I see lines starting with "#" committed literally as part of the commit message.

What version of TortoiseGit and msysgit are you using? On
what operating system?

TortoiseGit 1.8.6.0, Git for Windows 1.8.4, Windows 8 x64.

Please provide any additional information below.

Also, the cursor is placed below the commit message template in the "Message:" form field. IMHO it should be placed at the very beginning so that one can read / edit / fill out the commit message template from top to bottom more easily.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking