Skip to content

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

License

Notifications You must be signed in to change notification settings

morgant/git-resource-fork-hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages