{"id":18606077,"url":"https://github.com/hfagerlund/git-add-msg","last_synced_at":"2026-04-16T01:33:19.800Z","repository":{"id":164264919,"uuid":"39173728","full_name":"hfagerlund/git-add-msg","owner":"hfagerlund","description":"git extension for automatic Trac ticket updates","archived":false,"fork":false,"pushed_at":"2018-01-30T03:51:38.000Z","size":142,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T15:14:05.466Z","etag":null,"topics":["bash","git-extension","trac","xml-rpc-api"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hfagerlund.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-07-16T03:09:43.000Z","updated_at":"2017-07-30T00:38:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b1b934b-0950-4ae1-a397-1b81442e7cb5","html_url":"https://github.com/hfagerlund/git-add-msg","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hfagerlund/git-add-msg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfagerlund%2Fgit-add-msg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfagerlund%2Fgit-add-msg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfagerlund%2Fgit-add-msg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfagerlund%2Fgit-add-msg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hfagerlund","download_url":"https://codeload.github.com/hfagerlund/git-add-msg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hfagerlund%2Fgit-add-msg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31867711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","git-extension","trac","xml-rpc-api"],"created_at":"2024-11-07T02:24:12.510Z","updated_at":"2026-04-16T01:33:19.775Z","avatar_url":"https://github.com/hfagerlund.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-add-msg\nA git extension (command line tool) that automatically logs commits to Trac and/or a changelog.\n\nReplaces the following commands:\n```\n$ git add -A\n```\nand: \n```\n$ git commit -am \"\u003cinsert-your-commit-message-here\u003e\"\n```\nAlso creates a **changelog.log** file (in your project's root directory), and (optionally) adds a comment in the Trac ticket for each commit.\n\n## tl;dr\nAll of the above is accomplished by running just one command:\n```\n$ git add-msg\n```\n(Refer to 'Usage' section below.)\n- - -\n## Requirements\n- bash version \u003e= 4.2\n- git version \u003e= 1.7\n- (optional) Trac \u003e= v.0.12 \n - curl \u003e= 7.21\n### Testing\n- [shunit2](https://github.com/kward/shunit2) \u003e= 2.1.0\n\n(All copyrights for the above remain with their respective owners.)\n- - -\n## Installation\n```\n$ git clone https://github.com/hfagerlund/git-add-msg.git\n$ cd git-add-msg\n$ make install DEST_DIR=/path/to/your-git-extensions-directory\n```\n* add the path to `\u003cyour-git-extensions-directory\u003e` to your **executable path**:\n```bash\nexport PATH=\"$PATH:/path/to/your-git-extensions-directory\" #Note: no trailing slash\n```\n\n### To uninstall:\nManually remove the following files from `\u003cyour-git-extensions-directory\u003e`:\n```\ngit-add-msg-config.cfg\ngit-add-msg-config_sample.cfg\ngit-add-msg\ngit-add-msg-trac-service\n```\n- - -\n## Configuration\n#### All users:\n(OPTIONAL) Rename ``git-add-msg-config_sample.cfg`` to ``git-add-msg-config.cfg`` in `\u003cyour-git-extensions-directory\u003e`. This step can be skipped (refer to note below).\n\n**Note**: if a ``git-add-msg-config.cfg`` file is **not** present, it will result in a warning message being displayed when the tool is run (this can be safely ignored if not using Trac).\n\n- - - \n#### Trac users only:\n(1.) Update ``git-add-msg-config.cfg`` (copied from ``git-add-msg-config_sample.cfg`` in `\u003cyour-git-extensions-directory\u003e`) with your Trac settings by replacing the following values:\n```\nrepo=\"no_repo_specified\"         # replace \u003cno_repo_specified\u003e with the **name** of your Trac repository (found in Trac under 'Administration' \u003e 'Manage Repositories' \u003e 'Name')\nusername=\"no_username_specified\" # (as above, but with your Trac login username)\npassword=\"no_password_specified\" \nhost=\"no_host_specified\"\nport=\"no_port_specified\"\ninstance=\"no_instance_specified\" \n\n```\n**Note**: The repository name (ie. value of ``repo``) can also be changed for different Trac tickets **via the command line** using the ``-r`` option (instead of updating it manually) - refer to 'Usage' section below.\n\n(2.) Under the Trac ``Admin`` tab, click on ``Permissions``. On the ``Manage Permissions`` page, complete the ``Grant Permission`` fields as follows:\n\n| Subject:  | Action: |\n| ------------- | ------------- |\n| ``\u003ctrac-username\u003e``  (same as ``username`` value in step 1.) | ``XML_RPC``  |\n- - -\n## Usage\n#### All users:\n```\n$ git add-msg\n```\nFollow the prompts to add your **Trac ticket number** (optional - may be left blank if not using Trac) and **commit message**.\n\nDone!\n\n##### Example:\n```\nsomeuser@somehost:~/my-project$ git add-msg\nEnter your (Trac) ticket number (without hash OR colon):\n221\nEnter your commit message (without quote marks; press Enter, then Ctrl+d when done):\nupdated content\ngit committing...\n[master e10379d] #221: updated content\n 1 files changed, 1 insertions(+), 0 deletions(-)\nTrac ticket successfully updated.\n```\n\n#### Trac users:\n(Optional configuration) Specify the name of a repository that has been added to Trac as follows:\n```\n$ git add-msg -r \u003crepo-name\u003e\n```\n\nUsing the **-r** option automatically generates a link to the changeset in the Trac ticket.\n\n#### Tests:\nRun unit tests (in the `/tests` directory) using:\n```\n$ ./acceptanceTests.sh\n```\n\n**Note**: make sure that [shunit2](https://github.com/kward/shunit2) has been added to your `$PATH`.\n- - -\n## License\nCopyright (c) 2015 Heini Fagerlund. Licensed under the [MIT license](http://opensource.org/licenses/mit-license.php).\n(See [LICENSE](https://github.com/hfagerlund/git-add-msg/blob/master/LICENSE).)\n\n- - -\n## Changelog\n* 0.3.1 - January 29, 2018. New feature: automated installation.\n* 0.2.1 - January 29, 2018. Fixed display of changeset number in auto-generated Trac link.\n* 0.2.0 - January 13, 2016. Deprecated (optional) git status check.\n* 0.1.4 - December 30, 2015. Fixed display of ticket update message.\n* 0.1.3 - December 30, 2015. Newlines in multi-line commit messages now display in Changelog file.\n* 0.1.2 - December 29, 2015. Newlines in multi-line commit messages now display in Trac comments.\n* 0.1.1 - July 15, 2015. Commit messages now support additional characters: ``\u0026``, ``\"``, ``\u003c``, and ``\u003e``. Note: ``'`` is removed from messages.\n* 0.1.0 - July 15, 2015. Initial version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhfagerlund%2Fgit-add-msg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhfagerlund%2Fgit-add-msg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhfagerlund%2Fgit-add-msg/lists"}