Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

opensourceradio/git-tools

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-tools

Git tools used when working with the opensourceradio repos.

As of now, this repo contains only my versions of tools snagged from other places on the interwebs. See, e.g., http://stackoverflow.com/questions/384108/moving-from-cvs-to-git-id-equivalent and http://stackoverflow.com/questions/16524225/how-can-i-populate-the-git-commit-id-into-a-file-when-i-commit for references.

Three Things Required

  1. A pair of scripts to manipulate the source files
  • add-hash is a ruby script that's used to grab the current commit hash on checkout and insert it into any file that includes the string $Hash$

  • clean-hash is a perl script that removes all commit hashes from strings in any file on commit.

    These scripts should be in your ${PATH}.

  1. Your git configuration (system, user, or local) must include the following in order to use these scripts:
git config --add filter.buildsub.clean clean-hash
git config --add filter.buildsub.smudge add-hash
  1. Your local repo must include a .gitattributes file containing:
* filter=buildsub

Note that the filter name is arbitrary: the filter name in the two configuration settings, and the filter setting in .gitattributes must match.

About

Git tools used when working with the opensourceradio repos.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.