Sunday 15 January 2012

compatibility - different versions of git between developers -



compatibility - different versions of git between developers -

if have installed version of git 1.9.4 , repository on server using 1.8.2 there problem? there issues working using different versions of git? every person in team should have same version or not matter?

could find info on in docs, i'd grateful help.

1.9.4 , 1.8.2 pretty close, there may have few problems between different git versions, varying behaviors.

if want know have changed, can check git repository (https://github.com/git/git). clone locally, , search "compatibility" in documentation/relnotes directory (you can target 1.8 , 1.9 versions):

git clone git@github.com:git/git.git grep "compatibility" documentation/relnotes/1.[89]* -n

documentation/relnotes/1.8.0.txt:4:backward compatibility notes documentation/relnotes/1.8.1.txt:4:backward compatibility notes documentation/relnotes/1.8.2.txt:4:backward compatibility notes (this release) documentation/relnotes/1.8.2.txt:25:backward compatibility notes (for git 2.0) documentation/relnotes/1.8.3.txt:4:backward compatibility notes (for git 2.0) documentation/relnotes/1.8.4.txt:4:backward compatibility notes (for git 2.0) documentation/relnotes/1.8.5.txt:4:backward compatibility notes (for git 2.0) documentation/relnotes/1.9.0.txt:4:backward compatibility notes documentation/relnotes/1.9.0.txt:30:backward compatibility notes (for git 2.0.0)

you're concerned 1.8.3+ releases, , can see of compatibility issues concern git 2.0. 1 line interesting one:

documentation/relnotes/1.9.0.txt:4:backward compatibility notes

it take 1.9.0.txt, you'll see:

git submodules foreach $cmd $args behavior has been enhanced loose-object format has been dropped git fetch --tags behavior has changed git force $there $what has been enhanced repo-config, tar-tree, lost-found, , peek-remote have been dropped

nothing alarming git fetch --tags changes, shouldn't have compatibility problem. anyway, read total text:

backward compatibility notes

"git submodule foreach $cmd $args" used treat "$cmd $args" same way "ssh" did, concatenating them single string , letting shell unquote. careless users forget sufficiently quote $args argument split @ $ifs whitespaces shell, , got unexpected results due this. starting release, command line passed straight shell, if has argument.

read-only back upwards experimental loose-object format, in users optionally take write loose objects short while between v1.4.3 , v1.5.3 era, has been dropped.

the meanings of "--tags" alternative "git fetch" has changed; command fetches tags in add-on to fetched same command line without option.

the way "git force $there $what" interprets $what part given on command line, when not have colon explicitly tells ref @ $there repository updated, has been enhanced.

a handful of ancient commands have long been deprecated gone (repo-config, tar-tree, lost-found, , peek-remote).

git compatibility versions

No comments:

Post a Comment