morgant / git-resource-fork-hooks

Git hooks for projects containing old Mac HFS/HFS+ resource forks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-resource-fork-hooks

by Morgan Aldridge morgant@makkintosshu.com

OVERVIEW

Client-side hooks for Git projects containing old Mac HFS/HFS+ resource forks. I tossed this together for doing some NewtonScript development in NTK under MacOS 7.x, but it would also be useful for old MPW/CodeWarrior/ThinkC/etc. projects, or any other old Mac files with resource forks.

It performs its magic by using OS X's SplitForks & FixupResourceForks to split the resource forks off into AppleDouble format (._ files) prior to committing to the Git repo (otherwise Git would just ignore the resource forks, rendering the files incomplete if you were to checkout a fresh copy), then converting them back to resource forks upon any merge/update/etc.

INSTALLING

  1. Install Xcode Command Line Tools, if you haven't already done so.
  2. Clone this repository (e.g. git clone git@github.com:morgant/git-resource-fork-hooks.git).
  3. Copy the contents of the hooks/ directory to the .git/hooks/ directory of the project containing Mac files with resource forks (if you have any Git Hooks you're already using, you may need to manually merge them).

FURTHER READING

About

Git hooks for projects containing old Mac HFS/HFS+ resource forks

License:MIT License


Languages

Language:Shell 100.0%