File tree 3 files changed +26
-8
lines changed
3 files changed +26
-8
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,22 @@ Git v2.0.2 Release Notes
11
11
* Recent updates to "git repack" started to duplicate objects that
12
12
are in packfiles marked with .keep flag into the new packfile by
13
13
mistake.
14
+
15
+ * "git clone -b brefs/tags/bar" would have mistakenly thought we were
16
+ following a single tag, even though it was a name of the branch,
17
+ because it incorrectly used strstr().
18
+
19
+ * "%G" (nothing after G) is an invalid pretty format specifier, but
20
+ the parser did not notice it as garbage.
21
+
22
+ * Code to avoid adding the same alternate object store twice was
23
+ subtly broken for a long time, but nobody seems to have noticed.
24
+
25
+ * A handful of code paths had to read the commit object more than
26
+ once when showing header fields that are usually not parsed. The
27
+ internal data structure to keep track of the contents of the commit
28
+ object has been updated to reduce the need for this double-reading,
29
+ and to allow the caller find the length of the object.
30
+
31
+ * During "git rebase --merge", a conflicted patch could not be
32
+ skipped with "--skip" if the next one also conflicted.
Original file line number Diff line number Diff line change @@ -43,9 +43,10 @@ unreleased) version of Git, that is available from the 'master'
43
43
branch of the `git.git` repository.
44
44
Documentation for older releases are available here:
45
45
46
- * link:v2.0.1 /git.html[documentation for release 2.0.1 ]
46
+ * link:v2.0.2 /git.html[documentation for release 2.0.2 ]
47
47
48
48
* release notes for
49
+ link:RelNotes/2.0.2.txt[2.0.2],
49
50
link:RelNotes/2.0.1.txt[2.0.1],
50
51
link:RelNotes/2.0.0.txt[2.0.0].
51
52
Original file line number Diff line number Diff line change 5
5
*/
6
6
#include "git-compat-util.h"
7
7
#include "builtin.h"
8
+ #include "argv-array.h"
8
9
9
10
int cmd_annotate (int argc , const char * * argv , const char * prefix )
10
11
{
11
- const char * * nargv ;
12
+ struct argv_array args = ARGV_ARRAY_INIT ;
12
13
int i ;
13
- nargv = xmalloc (sizeof (char * ) * (argc + 2 ));
14
14
15
- nargv [0 ] = "annotate" ;
16
- nargv [1 ] = "-c" ;
15
+ argv_array_pushl (& args , "annotate" , "-c" , NULL );
17
16
18
17
for (i = 1 ; i < argc ; i ++ ) {
19
- nargv [ i + 1 ] = argv [i ];
18
+ argv_array_push ( & args , argv [i ]) ;
20
19
}
21
- nargv [argc + 1 ] = NULL ;
22
20
23
- return cmd_blame (argc + 1 , nargv , prefix );
21
+ return cmd_blame (args . argc , args . argv , prefix );
24
22
}
You can’t perform that action at this time.
0 commit comments