1. 20 4月, 2006 6 次提交
  2. 19 4月, 2006 10 次提交
  3. 18 4月, 2006 16 次提交
    • H
      git-svnimport symlink support · 08ddd4f7
      Herbert Valerio Riedel 提交于
      added svn:special symlink support for access methods other than
      direct-http
      Signed-off-by: NHerbert Valerio Riedel <hvr@gnu.org>
      Acked-by: NMatthias Urlichs <smurf@smurf.noris.de>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      08ddd4f7
    • J
      combine-diff: show diffstat with the first parent. · 965f803c
      Junio C Hamano 提交于
      Asking for stat (either with --stat or --patch-with-stat) gives
      you diffstat for the first parent, even under combine-diff.
      
      While the combined patch is useful to highlight the complexity
      and interaction of the parts touched by all branches when
      reviewing a merge commit, diffstat is a tool to assess the
      extent of damage the merge brings in, and showing stat with the
      first parent is more sensible than clever per-parent diffstat.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      965f803c
    • J
      b073f26b
    • L
      Log message printout cleanups (#3): fix --pretty=oneline · a4d34e2d
      Linus Torvalds 提交于
      This option is very special, since pretty_print_commit() will _remove_
      the newline at the end of it, so we want to have an extra separator
      between the things.
      
      I added a honking big comment this time, so that (a) I don't forget this
      _again_ (I broke "oneline" several times during this printout cleanup),
      and so that people can understand _why_ the code does what it does.
      
      Now, arguably the alternate fix is to always have the '\n' at the end in
      pretty-print-commit, but git-rev-list depends on the current behaviour
      (but we could have git-rev-list remove it, whatever).
      
      With the big comment, the code hopefully doesn't get broken again. And now
      things like
      
      	git log --pretty=oneline --cc --patch-with-stat
      
      works (even if that is admittedly a totally insane combination: if you
      want the patch, having the "oneline" log format is just crazy, but hey,
      it _works_. Even insane people are people).
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a4d34e2d
    • L
      Log message printout cleanups (#2) · eab144ac
      Linus Torvalds 提交于
      Here's a further patch on top of the previous one with cosmetic
      improvements (no "real" code changes, just trivial updates):
      
       - it gets the "---" before a diffstat right, including for the combined
         merge case. Righ now the logic is that we always use "---" when we have
         a diffstat, and an empty line otherwise. That's how I visually prefer
         it, but hey, it can be tweaked later.
      
       - I made "diff --cc/combined" add the "---/+++" header lines too. The
         thing won't be mistaken for a valid diff, since the "@@" lines have too
         many "@" characters (three or more), but it just makes it visually
         match a real diff, which at least to me makes a big difference in
         readability. Without them, it just looks very "wrong".
      
         I guess I should have taken the filename from each individual entry
         (and had one "---" file per parent), but I didn't even bother to try to
         see how that works, so this was the simple thing.
      
      With this, doing a
      
      	git log --cc --patch-with-stat
      
      looks quite readable, I think. The only nagging issue - as far as I'm
      concerned - is that diffstats for merges are pretty questionable the way
      they are done now. I suspect it would be better to just have the _first_
      diffstat, and always make the merge diffstat be the one for "result
      against first parent".
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      eab144ac
    • J
      packed_object_info_detail(): check for corrupt packfile. · 2855d580
      Junio C Hamano 提交于
      Serge E. Hallyn noticed that we compute how many input bytes are
      still left, but did not use it for sanity checking.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      2855d580
    • L
      Log message printout cleanups · 91539833
      Linus Torvalds 提交于
      On Sun, 16 Apr 2006, Junio C Hamano wrote:
      >
      > In the mid-term, I am hoping we can drop the generate_header()
      > callchain _and_ the custom code that formats commit log in-core,
      > found in cmd_log_wc().
      
      Ok, this was nastier than expected, just because the dependencies between
      the different log-printing stuff were absolutely _everywhere_, but here's
      a patch that does exactly that.
      
      The patch is not very easy to read, and the "--patch-with-stat" thing is
      still broken (it does not call the "show_log()" thing properly for
      merges). That's not a new bug. In the new world order it _should_ do
      something like
      
      	if (rev->logopt)
      		show_log(rev, rev->logopt, "---\n");
      
      but it doesn't. I haven't looked at the --with-stat logic, so I left it
      alone.
      
      That said, this patch removes more lines than it adds, and in particular,
      the "cmd_log_wc()" loop is now a very clean:
      
      	while ((commit = get_revision(rev)) != NULL) {
      		log_tree_commit(rev, commit);
      		free(commit->buffer);
      		commit->buffer = NULL;
      	}
      
      so it doesn't get much prettier than this. All the complexity is entirely
      hidden in log-tree.c, and any code that needs to flush the log literally
      just needs to do the "if (rev->logopt) show_log(...)" incantation.
      
      I had to make the combined_diff() logic take a "struct rev_info" instead
      of just a "struct diff_options", but that part is pretty clean.
      
      This does change "git whatchanged" from using "diff-tree" as the commit
      descriptor to "commit", and I changed one of the tests to reflect that new
      reality. Otherwise everything still passes, and my other tests look fine
      too.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      91539833
    • S
      cleanups: remove unused variable from exec_cmd.c · bb996614
      Serge E. Hallyn 提交于
      Not sure whether it should be removed, or whether
      execv_git_cmd() should return it rather than -1 at bottom.
      Signed-off-by: NSerge E. Hallyn <serue@us.ibm.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      bb996614
    • S
      cleanups: prevent leak of two strduped strings in config.c · dafc88b1
      Serge E. Hallyn 提交于
      Config_filename and lockfile are strduped and then leaked in
      git_config_set_multivar.
      Signed-off-by: NSerge E. Hallyn <serue@us.ibm.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      dafc88b1
    • S
      cleanups: Remove impossible case in quote.c · ecc13e73
      Serge E. Hallyn 提交于
      The switch is inside an if statement which is false if
      the character is ' '.  Either the if should be <=' '
      instead of <' ', or the case should be removed as it could
      be misleading.
      Signed-off-by: NSerge E. Hallyn <serue@us.ibm.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      ecc13e73
    • S
      cleanups: Remove unused vars from combine-diff.c · 310f8b5b
      Serge E. Hallyn 提交于
      Mod_type in particular sure looks like it wants to be used, but isn't.
      Signed-off-by: NSerge E. Hallyn <serue@us.ibm.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      310f8b5b
    • S
      cleanups: Fix potential bugs in connect.c · da2a95b2
      Serge E. Hallyn 提交于
      The strncmp for ACK was ACK does not include the final space.
      Presumably either we should either remove the trailing space,
      or compare 4 chars (as this patch does).
      
      'path' is sometimes strdup'ed, but never freed.
      Signed-off-by: NSerge E. Hallyn <serue@us.ibm.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      da2a95b2
    • J
      Merge branch 'jc/boundary' · 6feba7cb
      Junio C Hamano 提交于
      * jc/boundary:
        rev-list --boundary: show boundary commits even when limited otherwise.
      6feba7cb
    • J
      Merge branch 'jc/bottomless' · e190bc55
      Junio C Hamano 提交于
      * jc/bottomless:
        rev-list --bisect: limit list before bisecting.
      e190bc55
    • Y
      Allow empty lines in info/grafts · 360204c3
      Yann Dirson 提交于
      In addition to the existing comment support, that just allows the user
      to use a convention that works pretty much everywhere else.
      Signed-off-by: NYann Dirson <ydirson@altern.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      360204c3
    • J
      rev-list --header: output format fix · db89665f
      Junio C Hamano 提交于
      Initial fix prepared by Johannes, but I did it slightly differently.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      db89665f
  4. 17 4月, 2006 6 次提交
  5. 16 4月, 2006 2 次提交