views:

451

answers:

3

I'm working with another developer on the other side of the country who is the lead on our project, and isn't using a formal version control system. On my end, I'm tracking all of my code in git. I've recently started contributing to the main project, and would like to be able to track updates from the other developer as well.

When I receive his updated code, it's usually in the form of a zip file. If I simply unzip the file into my git working folder, git believes that every file has changed, presumably because the stat info has changed.

What I'd like to see is a way that I can unzip the new code alongside my working copy, and merge in only the changes. What's the best way to do this? As it's a Powerbuilder project, most of the files are binaries.

Thanks!

+5  A: 
VonC
I did as you suggested, and WinMerge gives me exactly what I need to figure out which files to pull into my working copy. Thanks!
Doug
The time of the file has nothing to do with it. Running "touch file" does not mark it as changed in git, that would be insanity.
rq
@rq: true. I fixed the answer accordingly
VonC
+1  A: 

Check out if contrib/fast-import/import-zips.py would do what you want.

Jakub Narębski
+1  A: 

this, altho not entirely sure a good idea, is what i'm thinking of doing in almost the same situation:

what about basically maintaining a repo for them?

any changes you receive get placed in their repo and committed. then merge their repo, which would be a tracked remote, into yours when you need to?

poop-deck