mirror of
https://github.com/git/git.git
synced 2024-11-17 22:44:49 +01:00
Merge branch 'master' into next
* master: GIT 1.3.0 Add git-annotate(1) and git-blame(1) diff --stat: make sure to set recursive. git-svnimport symlink support
This commit is contained in:
commit
d3d9681a0f
6 changed files with 109 additions and 4 deletions
44
Documentation/git-annotate.txt
Normal file
44
Documentation/git-annotate.txt
Normal file
|
@ -0,0 +1,44 @@
|
|||
git-annotate(1)
|
||||
===============
|
||||
|
||||
NAME
|
||||
----
|
||||
git-annotate - Annotate file lines with commit info
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
git-annotate [options] file [revision]
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
Annotates each line in the given file with information from the commit
|
||||
which introduced the line. Optionally annotate from a given revision.
|
||||
|
||||
OPTIONS
|
||||
-------
|
||||
-l, --long::
|
||||
Show long rev (Defaults off).
|
||||
|
||||
-t, --time::
|
||||
Show raw timestamp (Defaults off).
|
||||
|
||||
-r, --rename::
|
||||
Follow renames (Defaults on).
|
||||
|
||||
-S, --rev-file <revs-file>::
|
||||
Use revs from revs-file instead of calling git-rev-list.
|
||||
|
||||
-h, --help::
|
||||
Show help message.
|
||||
|
||||
SEE ALSO
|
||||
--------
|
||||
gitlink:git-blame[1]
|
||||
|
||||
AUTHOR
|
||||
------
|
||||
Written by Ryan Anderson <ryan@michonline.com>.
|
||||
|
||||
GIT
|
||||
---
|
||||
Part of the gitlink:git[7] suite
|
42
Documentation/git-blame.txt
Normal file
42
Documentation/git-blame.txt
Normal file
|
@ -0,0 +1,42 @@
|
|||
git-blame(1)
|
||||
============
|
||||
|
||||
NAME
|
||||
----
|
||||
git-blame - Blame file lines on commits
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
git-blame file [options] file [revision]
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
Annotates each line in the given file with information from the commit
|
||||
which introduced the line. Start annotation from the given revision.
|
||||
|
||||
OPTIONS
|
||||
-------
|
||||
-c, --compability::
|
||||
Use the same output mode as git-annotate (Default: off).
|
||||
|
||||
-l, --long::
|
||||
Show long rev (Defaults off).
|
||||
|
||||
-S, --rev-file <revs-file>::
|
||||
Use revs from revs-file instead of calling git-rev-list.
|
||||
|
||||
-h, --help::
|
||||
Show help message.
|
||||
|
||||
|
||||
SEE ALSO
|
||||
--------
|
||||
gitlink:git-annotate[1]
|
||||
|
||||
AUTHOR
|
||||
------
|
||||
Written by Fredrik Kuivinen <freku045@student.liu.se>.
|
||||
|
||||
GIT
|
||||
---
|
||||
Part of the gitlink:git[7] suite
|
|
@ -399,6 +399,12 @@ gitlink:git-update-ref[1]::
|
|||
|
||||
Interrogators:
|
||||
|
||||
gitlink:git-annotate[1]::
|
||||
Annotate file lines with commit info.
|
||||
|
||||
gitlink:git-blame[1]::
|
||||
Blame file lines on commits.
|
||||
|
||||
gitlink:git-check-ref-format[1]::
|
||||
Make sure ref name is well formed.
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
GVF=GIT-VERSION-FILE
|
||||
DEF_VER=v1.3-rc4.GIT
|
||||
DEF_VER=v1.3.GIT
|
||||
|
||||
# First try git-describe, then see if there is a version file
|
||||
# (included in release tarballs), then default
|
||||
|
|
1
Makefile
1
Makefile
|
@ -675,7 +675,6 @@ check-docs::
|
|||
@for v in $(ALL_PROGRAMS) $(BUILT_INS) git$X gitk; \
|
||||
do \
|
||||
case "$$v" in \
|
||||
git-annotate | git-blame | \
|
||||
git-merge-octopus | git-merge-ours | git-merge-recursive | \
|
||||
git-merge-resolve | git-merge-stupid | \
|
||||
git-ssh-pull | git-ssh-push ) continue ;; \
|
||||
|
|
|
@ -98,6 +98,7 @@ package SVNconn;
|
|||
use File::Spec;
|
||||
use File::Temp qw(tempfile);
|
||||
use POSIX qw(strftime dup2);
|
||||
use Fcntl qw(SEEK_SET);
|
||||
|
||||
sub new {
|
||||
my($what,$repo) = @_;
|
||||
|
@ -143,9 +144,22 @@ sub file {
|
|||
}
|
||||
my $mode;
|
||||
if (exists $properties->{'svn:executable'}) {
|
||||
$mode = '0755';
|
||||
$mode = '100755';
|
||||
} elsif (exists $properties->{'svn:special'}) {
|
||||
my ($special_content, $filesize);
|
||||
$filesize = tell $fh;
|
||||
seek $fh, 0, SEEK_SET;
|
||||
read $fh, $special_content, $filesize;
|
||||
if ($special_content =~ s/^link //) {
|
||||
$mode = '120000';
|
||||
seek $fh, 0, SEEK_SET;
|
||||
truncate $fh, 0;
|
||||
print $fh $special_content;
|
||||
} else {
|
||||
die "unexpected svn:special file encountered";
|
||||
}
|
||||
} else {
|
||||
$mode = '0644';
|
||||
$mode = '100644';
|
||||
}
|
||||
close ($fh);
|
||||
|
||||
|
|
Loading…
Reference in a new issue