mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
a64e23954fc617019354a929dcefaa6049c2f744
git-commit must allocate a copy of the current index if only a subset of files is to be commited in save_index(). It uses 'cp -p' because the index may contain racily-clean entries, which will be detected only if the timestamp of the index remains unaltered. In general, it is safe to create a hardlink instead of copying the index because all writers use the lock_file infrastructure that writes a new file and moves it into the destination, breaking the hardlink. On Windows, in particular, 'cp -p' suffers from a mysterious inability to accurately preserve the timestamp under some circumstances. (This was detected by the test suite, where some racily clean files were not recognized.) 'ln' does create a hardlink on Windows on NTFS, and makes a copy with the correctly preserved timestamp on FAT. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
//////////////////////////////////////////////////////////////// GIT - the stupid content tracker //////////////////////////////////////////////////////////////// "git" can mean anything, depending on your mood. - random three-letter combination that is pronounceable, and not actually used by any common UNIX command. The fact that it is a mispronunciation of "get" may or may not be relevant. - stupid. contemptible and despicable. simple. Take your pick from the dictionary of slang. - "global information tracker": you're in a good mood, and it actually works for you. Angels sing, and a light suddenly fills the room. - "goddamn idiotic truckload of sh*t": when it breaks Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. Git is an Open Source project covered by the GNU General Public License. It was originally written by Linus Torvalds with help of a group of hackers around the net. It is currently maintained by Junio C Hamano. Please read the file INSTALL for installation instructions. See Documentation/tutorial.txt to get started, then see Documentation/everyday.txt for a useful minimum set of commands, and "man git-commandname" for documentation of each command. CVS users may also want to read Documentation/cvs-migration.txt. Many Git online resources are accessible from http://git.or.cz/ including full documentation and Git related tools. The user discussion and development of Git take place on the Git mailing list -- everyone is welcome to post bug reports, feature requests, comments and patches to git@vger.kernel.org. To subscribe to the list, send an email with just "subscribe git" in the body to majordomo@vger.kernel.org. The mailing list archives are available at http://marc.theaimsgroup.com/?l=git and other archival sites. The messages titled "A note from the maintainer", "What's in git.git (stable)" and "What's cooking in git.git (topics)" and the discussion following them on the mailing list give a good reference for project status, development direction and remaining tasks.
Description
Languages
C
50.4%
Shell
38.7%
Perl
4.4%
Tcl
3.1%
Python
0.8%
Other
2.4%