Re: [PATCH 6/7] build: "make clean" should not remove configure-generated files

2012-07-18 Thread Matthieu Moy
Stefano Lattarini writes: > for example, an autotools old-timer that has run: > > ./configure --prefix /opt/git > > in the past, without running "make distclean" afterwards, would > expect a "make install" issued after a "make clean" to rebuild and > install git in '/opt/git'; I've been hit

Re: Extract Git classes from git-svn (1/10)

2012-07-18 Thread Thiago Farina
On Wed, Jul 18, 2012 at 2:49 AM, Junio C Hamano wrote: > There may be a hosting site with better code review features, but > all the code review of Git happens on this mailing list, and that is > not likely to change in the near future. > For me, you know, it's codereview, aka rietveld. [1] [1] c

Re: [PATCH 0/7] build system: support automatic reconfiguration for autotools user

2012-07-18 Thread Junio C Hamano
Except for miniscule nits in the the bottom two, I didn't find anything objectionable---nicely done. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 3/7] autoconf: remove some redundant shell indirections

2012-07-18 Thread Junio C Hamano
Stefano Lattarini writes: > diff --git a/configure.ac b/configure.ac > index 789926f..9472f6b 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -29,13 +29,12 @@ AC_DEFUN([GIT_ARG_SET_PATH], > # --without-PROGRAM is used. > AC_DEFUN([GIT_CONF_APPEND_PATH], > [m4_pushdef([GIT_UC_PROGRAM]

Re: [PATCH 2/7] autoconf: GIT_CONF_APPEND_LINE -> GIT_CONF_SUBST

2012-07-18 Thread Junio C Hamano
Stefano Lattarini writes: > The new name fits better with the macro signature, and underlines the > similarities with the autoconf-provided macro AC_SUBST (which will be > made even more pronounced in planned future commits). > > Once again, no semantic change is intended, and indeed no change to

Re: Extract Git classes from git-svn (2/10) (was Re: Fix git-svn tests for SVN 1.7.5.)

2012-07-18 Thread Michael G Schwern
On 2012.7.18 3:58 AM, Eric Wong wrote: > I agree with everything Jonathan said (and thank him for taking > the time to point you in the right direction). Thanks, you guys have been very nice to my flailing and failing. I'm going to back off and send out a sort of overview email so we can figure o

Re: [PATCH] diff: respect --no-ext-diff with typechange

2012-07-18 Thread Junio C Hamano
Jeff King writes: > I don't care too deeply either way, and it is technically a behavior > change. So there is a chance of regression for something that nobody has > actually complained about. Thanks. I share the same feeling, but the code after the patch looks much nicer, which is somewhat sad.

Re: [PATCH v2] Fix notes handling in rev-list

2012-07-18 Thread Junio C Hamano
Jeff King writes: > So leaving aside the --graph issues, we would need to decide what to > show in the non-graph case. And I think your suggestion is good; there > is no real need to dereference the blob (if you want that, you can turn > on the pretty-printer). > > I'm just not sure what the outp

[PATCH 6/7] build: "make clean" should not remove configure-generated files

2012-07-18 Thread Stefano Lattarini
Those filed hold variables, settings and information set by the configuration process run by './configure'; in Autotools-based build system that kind of stuff should only be removed by "make distclean". Having it removed by "make clean" is not only inconsistent, but causes real confusion for that

[PATCH 7/7] build: reconfigure automatically if configure.ac changes

2012-07-18 Thread Stefano Lattarini
This provides a reduced but still useful sibling of the Automake's "automatic Makefile rebuild" feature. It's important to note that we take care to enable the new rules only if the tree that has already be configured with './configure', so that users relying on manual configuration won't be negat

[PATCH 4/7] autoconf: remove few redundant semicolons

2012-07-18 Thread Stefano Lattarini
They are merely useless now, but would get in the way of future changes. No semantic change is intended. Signed-off-by: Stefano Lattarini --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 9472f6b..5fb9734 100644 --- a/conf

[PATCH 5/7] autoconf: use AC_CONFIG_COMMANDS instead of ad-hoc 'config.mak.append'

2012-07-18 Thread Stefano Lattarini
This will allow "./config.status --recheck; ./config.status" to work correctly as a mean of reconfiguring the tree with the same configure argument used in the previous "./configure" invocation. Signed-off-by: Stefano Lattarini --- configure.ac | 25 - 1 file changed, 16

[PATCH 3/7] autoconf: remove some redundant shell indirections

2012-07-18 Thread Stefano Lattarini
They are merely useless now, but would get in the way of future changes. No semantic change is intended. Signed-off-by: Stefano Lattarini --- configure.ac | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index 789926f..9472f6b 100644 -

[PATCH 2/7] autoconf: GIT_CONF_APPEND_LINE -> GIT_CONF_SUBST

2012-07-18 Thread Stefano Lattarini
The new name fits better with the macro signature, and underlines the similarities with the autoconf-provided macro AC_SUBST (which will be made even more pronounced in planned future commits). Once again, no semantic change is intended, and indeed no change to the generated configure script is ex

[PATCH 1/7] autoconf: GIT_CONF_APPEND_LINE: change signature

2012-07-18 Thread Stefano Lattarini
From: GIT_CONF_APPEND_LINE([VAR=VAL]) to: GIT_CONF_APPEND_LINE([VAR], [VAL]) This is only a preparatory change in view of future refactorings. No semantic change is intended. In fact, the generated configure file doesn't change at all. Signed-off-by: Stefano Lattarini --- configure.ac

[PATCH 0/7] build system: support automatic reconfiguration for autotools user

2012-07-18 Thread Stefano Lattarini
This series aims at improving the user experience for those people who (like me) use that Autotools-based interface to the build system of Git. The two actual improvements (equipped with proper explanations and rationales) are implemented in the last two patches. The other five patches are just p

Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-18 Thread Junio C Hamano
Marcin Owsiany writes: > PTAL: > > From: Marcin Owsiany > Date: Sun, 24 Jun 2012 22:40:05 +0100 > Subject: [PATCH] git-svn: don't create master if another head exists > > git-svn insists on creating the "master" head (unless it exists) on every > "fetch". It is useful that it gets created initia

Re: [PATCH] branch: make --set-upstream saner without an explicit starting point

2012-07-18 Thread Carlos Martín Nieto
On Tue, 2012-07-17 at 22:56 -0700, Junio C Hamano wrote: > Ping on a seemingly stalled discussion (no need to rush but just > checking). I've implemented the feedback, but been slacking on writing the tests which is what's stopped me from re-sending the series. cmn -- To unsubscribe from th

Re: clone URL missing in gitweb

2012-07-18 Thread Thomas Hager
Quoting baluchen : I verified the entries and they seems to be correct. But the clone and its URL is still now showing when browsing project summary page via gitweb well, unless you at least post the most relevant options of your gitweb config, i'm afraid i cannot help you. maybe a snippet of m

Re: git_getpass regression?

2012-07-18 Thread Erik Faye-Lund
On Wed, Jul 18, 2012 at 7:53 AM, Junio C Hamano wrote: > Ping on seemingly stalled discussion. Just to recap quickly from my point of view: 1. There's no regression. 2. There's room for improvement of the prompting on Windows. 3. I'm not entirely confident that I've found a safe way of improving

Re: [PATCHv2 4/4] mw-to-git: use git-credential's URL parser

2012-07-18 Thread Matthieu Moy
Jeff King writes: > On Wed, Jul 18, 2012 at 08:57:41AM -0400, Jeff King wrote: > >> So since that is a non-issue, I think the second diff I provided above >> is a bit nicer. > > And here is a replacement patch 4/4. > > -- >8 -- > Subject: mw-to-git: use git-credential's URL parser Perfect, thank

Re: [PATCH 4/4] mw-to-git: use git-credential's URL parser

2012-07-18 Thread Matthieu Moy
Jeff King writes: > So since that is a non-issue, I think the second diff I provided above > is a bit nicer. I like this one best too. It just lacks a comment saying why it should be displayed first ;-). -- Matthieu Moy http://www-verimag.imag.fr/~moy/ -- To unsubscribe from this list: send th

[PATCHv2 4/4] mw-to-git: use git-credential's URL parser

2012-07-18 Thread Jeff King
On Wed, Jul 18, 2012 at 08:57:41AM -0400, Jeff King wrote: > So since that is a non-issue, I think the second diff I provided above > is a bit nicer. And here is a replacement patch 4/4. -- >8 -- Subject: mw-to-git: use git-credential's URL parser We can just feed our URL straight to git-creden

Re: [PATCH 4/4] mw-to-git: use git-credential's URL parser

2012-07-18 Thread Jeff King
On Wed, Jul 18, 2012 at 02:37:27PM +0200, Matthieu Moy wrote: > Jeff King writes: > > > I started with a version that did that, but there are two complications: > > > > 1. credential_write needs to know that the 'url' field must come > > first, as it overwrites the other fields. So we end

Re: [PATCH 2/7] git-rebase--interactive.sh: extract function for adding "pick" line

2012-07-18 Thread Neil Horman
On Wed, Jul 18, 2012 at 12:27:30AM -0700, Martin von Zweigbergk wrote: > Extract the code that adds a possibly commented-out "pick" line to the > todo file. This lets us reuse it more easily later. > --- > git-rebase--interactive.sh | 21 - > 1 file changed, 12 insertions(+), 9

Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-18 Thread Marcin Owsiany
On Wed, Jul 18, 2012 at 11:27:22AM +, Eric Wong wrote: > Marcin Owsiany wrote: > > On Wed, Jul 11, 2012 at 03:56:43PM -0700, Junio C Hamano wrote: > > > If the caller does not handle errors, it could be even clearer to > > > write it like > > > > > > command_noisy(qw(update-ref HEAD), $gs->

Re: [PATCH 4/4] mw-to-git: use git-credential's URL parser

2012-07-18 Thread Matthieu Moy
Jeff King writes: > I started with a version that did that, but there are two complications: > > 1. credential_write needs to know that the 'url' field must come > first, as it overwrites the other fields. So we end up > special-casing it either way. Right, I didn't think of that. Bu

Re: [PATCH 4/4] mw-to-git: use git-credential's URL parser

2012-07-18 Thread Jeff King
On Wed, Jul 18, 2012 at 02:24:13PM +0200, Matthieu Moy wrote: > Jeff King writes: > > > @@ -216,7 +190,9 @@ sub credential_write { > > sub credential_run { > > my $op = shift; > > my $credential = shift; > > + my $url = shift; > > my $pid = open2(my $reader, my $writer, "git crede

Re: [PATCH 3/4] credential: convert "url" attribute into its parsed subparts

2012-07-18 Thread Jeff King
On Wed, Jul 18, 2012 at 02:24:01PM +0200, Matthieu Moy wrote: > Jeff King writes: > > > $ echo https://u...@example.com | git credential ident > > protocol=https > > host=example.com > > username=user > > > > since I had no use for it, but it would obviously be an easy one-liner > > to w

Re: [PATCH 4/4] mw-to-git: use git-credential's URL parser

2012-07-18 Thread Matthieu Moy
Jeff King writes: > @@ -216,7 +190,9 @@ sub credential_write { > sub credential_run { > my $op = shift; > my $credential = shift; > + my $url = shift; > my $pid = open2(my $reader, my $writer, "git credential $op"); > + print $writer "url=$url\n" if defined $url; >

Re: [PATCH 3/4] credential: convert "url" attribute into its parsed subparts

2012-07-18 Thread Matthieu Moy
Jeff King writes: > $ echo https://u...@example.com | git credential ident > protocol=https > host=example.com > username=user > > since I had no use for it, but it would obviously be an easy one-liner > to write (it's just "fill" without the actual fill call). I was thinking the same, e

Re: [PATCH v8 4/4] git-rebase: add keep_empty flag

2012-07-18 Thread Neil Horman
On Wed, Jul 18, 2012 at 09:10:06AM +0200, Johannes Sixt wrote: > Am 7/18/2012 8:20, schrieb Martin von Zweigbergk: > > On Fri, Apr 20, 2012 at 7:36 AM, Neil Horman wrote: > >> pick_one () { > >> ff=--ff > >> + > >> case "$1" in -n) sha1=$2; ff= ;; *) sha1=$1 ;; esac > >> c

[PATCH 4/4] mw-to-git: use git-credential's URL parser

2012-07-18 Thread Jeff King
We can just feed our URL straight to git-credential and it will parse it for us, saving us some code. Signed-off-by: Jeff King --- contrib/mw-to-git/git-remote-mediawiki | 32 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/contrib/mw-to-git/git-re

[PATCH 3/4] credential: convert "url" attribute into its parsed subparts

2012-07-18 Thread Jeff King
The git-credential command requires that you feed it a broken-down credential, which means that the client needs to parse a URL itself. Since we have our own URL-parsing routines, we can easily allow the caller to just give us the URL as-is, saving them some code. Signed-off-by: Jeff King --- The

[PATCH 2/4] mw-to-git: check blank credential attributes via length

2012-07-18 Thread Jeff King
When writing a credential to git-credential, we omit fields that do not have a true value. This will skip empty or undefined fields (which we want), but will also accidentally skip usernames or passwords which happen to have a non-true value (e.g., "0"). Be more careful by checking for non-zero len

[PATCH 1/4] docs/credential: minor clarity fixups

2012-07-18 Thread Jeff King
The text in git-credential(1) was copied from technical/api-credentials, so it still talks about the input/output format as coming from git to the helper. Since the surrounding text already indicates that this format is used for reading and writing with git credential, we can just remove the extran

[PATCH 0/4] mediawiki/credential cleanups

2012-07-18 Thread Jeff King
Hi Matthieu, Your initial credential plumbing series went by while I was on vacation, and I finally got a chance to look at it in more detail. Overall it looks very good; thank you (and your students) for working on it. It was especially nice to have a test harness with complete instructions. :)

Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-18 Thread Eric Wong
Marcin Owsiany wrote: > On Wed, Jul 11, 2012 at 03:56:43PM -0700, Junio C Hamano wrote: > > If the caller does not handle errors, it could be even clearer to > > write it like > > > > command_noisy(qw(update-ref HEAD), $gs->refname) || > > die "Cannot update HEAD!!!"; > > Turns o

Re: Extract Git classes from git-svn (2/10) (was Re: Fix git-svn tests for SVN 1.7.5.)

2012-07-18 Thread Eric Wong
Michael G Schwern wrote: Hi Michael, thanks for taking your time to help with this. I agree with everything Jonathan said (and thank him for taking the time to point you in the right direction). I too (very strongly) prefer email for code review. I doubt I would've ever gotten involved if git

Re: clone URL missing in gitweb

2012-07-18 Thread baluchen
Tom, I verified the entries and they seems to be correct. But the clone and its URL is still now showing when browsing project summary page via gitweb Thanks Bala -- View this message in context: http://git.661346.n2.nabble.com/clone-URL-missing-in-gitweb-tp7563176p7563199.html Sent from the gi

Re: clone URL missing in gitweb

2012-07-18 Thread Thomas Hager
Quoting baluchen : I verified and i have following line in my gitweb.cgi. But still i caould not get cloan and what does your configuration of gitweb look like? and what do mean with "But still i caould not get cloan"? are you trying to clone via gitweb? bye, tom. -- Thomas "Duke" Hager

Re: clone URL missing in gitweb

2012-07-18 Thread baluchen
Thanks tom. I verified and i have following line in my gitweb.cgi. But still i caould not get cloan our @git_base_url_list = grep { $_ ne '' } (""); @url_list = map { "$_/$project" } @git_base_url_list unless @url_list; # use per project git URL list in $projectroot/$project/clo

Re: [PATCH/RFC] git-svn: don't create master if another head exists

2012-07-18 Thread Marcin Owsiany
Thanks for the review! On Wed, Jul 11, 2012 at 03:56:43PM -0700, Junio C Hamano wrote: > Marcin Owsiany writes: > > > Date: Sun, 24 Jun 2012 22:40:05 +0100 > > Subject: [PATCH] git-svn: don't create master if another head exists > > > > git-svn insists on creating the "master" head (unless it ex

Re: [RFC] Add a new email notification script to "contrib"

2012-07-18 Thread Matthieu Moy
mhag...@alum.mit.edu writes: > * One email per commit [1]. For each reference change, the script > first emits one email summarizing the reference change (including > one-line summaries of the new commits), then emits a separate email > for each new commit that was introduced, including pat

[PATCH 1/7] git-rebase--am.sh: avoid special-casing --keep-empty

2012-07-18 Thread Martin von Zweigbergk
Since 0fbb95d (am: don't call mailinfo if $rebasing, 2012-06-26), the patch body to apply when running 'git am --rebasing' is not taken from the mbox, but directly from the commit. If such a commit is "empty", 'git am --rebasing' still happily applies it and commits. However, since the input to 'gi

Re: [PATCH 0/7] correctly calculate patches to rebase

2012-07-18 Thread Martin von Zweigbergk
Argh! Sorry about the sendemail.chainreplyto=true. I must have read that warning message incorrectly :-(. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] Fix Q-encoded multi-octet-char split in email.

2012-07-18 Thread Jeff King
On Tue, Jul 17, 2012 at 10:10:25PM -0700, Junio C Hamano wrote: > Ping on a seemingly stalled thread. Hrm. I could swear that Takeharu sent a follow-up using pick_one_utf8_char directly that looked OK, but now I can't seem to find it in the list archives. I wonder if it was off-list and I didn't

[PATCH 7/7] rebase (without -p): correctly calculate patches to rebase

2012-07-18 Thread Martin von Zweigbergk
The different types of rebase use different ways of calculating the patches to rebase. 'git rebase' (without -m/-i/-p) uses git format-patch --ignore-if-in-upstream $upstream..$orig_head 'git rebase -m' uses git rev-list $upstream..$orig_head 'git rebase -i' (without -p) uses git rev-li

[PATCH 0/7] correctly calculate patches to rebase

2012-07-18 Thread Martin von Zweigbergk
These seven patches replace the broken one I sent in http://thread.gmane.org/gmane.comp.version-control.git/200644/focus=200648. I hope I got the handling of empty commits right this time. Martin von Zweigbergk (7): git-rebase--am.sh: avoid special-casing --keep-empty git-rebase--interactive.s

[PATCH 4/7] git-rebase--interactive.sh: look up subject in add_pick_line

2012-07-18 Thread Martin von Zweigbergk
The todo file is generated using (more-or-less) 'git rev-list $revisions --pretty=oneline --abbrev-commit --abbrev=7', i.e. by letting 'git rev-list' output both the abbreviated sha1 and the subject line. To allow us to more easily generate the list of commits to rebase by using commands that don't

[PATCH 6/7] rebase -p: don't request --left-right only to ignore left side

2012-07-18 Thread Martin von Zweigbergk
While generating the todo file, rebase -p calls 'git rev-list --left-right a...b' (with 'a' equal to $upstream or $onto and 'b' equal to $orig_head) and its output is piped through 'sed -n "s/^>//p"', making it equivalent to 'git rev-list --right-only a...b'. Change the invocation to exactly that.

[PATCH 5/7] rebase -p: use --cherry-mark for todo file

2012-07-18 Thread Martin von Zweigbergk
While building the todo file, 'rebase -p' needs to find the cherry-picked commits in the branch that is about to be rebased. For this, it calculates the set difference between the full set of commits and the non-cherry-picked ones (as reported by 'git rev-list --left-right --cherry-pick'). Now that

[PATCH 2/7] git-rebase--interactive.sh: extract function for adding "pick" line

2012-07-18 Thread Martin von Zweigbergk
Extract the code that adds a possibly commented-out "pick" line to the todo file. This lets us reuse it more easily later. --- git-rebase--interactive.sh | 21 - 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.

[PATCH 3/7] git-rebase--interactive: group all $preserve_merges code

2012-07-18 Thread Martin von Zweigbergk
The code in git-rebase--interactive that creates the todo file contains if-blocks that depend on whether $preserve_merges is active. There is only a very small amount of code in between that is shared with non-merge-preserving code path, so remove the repeated conditions and duplicate the small amo

Re: clone URL missing in gitweb

2012-07-18 Thread Thomas Hager
Quoting baluchen : Hi, hi, But in my setup i coould not find "cloaning" option cloneurl is a "per repository" option, which is set as config option in your repository. see "man gitweb" for details. what you're probably searching for is the global option "git_base_url_list", which is used

Re: [PATCH v2] Fix notes handling in rev-list

2012-07-18 Thread Jeff King
On Mon, Jul 16, 2012 at 10:42:07PM -0700, Junio C Hamano wrote: > > Just like log, the notes are part of the commit information to the right > > of the graph. But this second hunk is for when we are not using the > > pretty-printer at all, and the output looks like this: > > > > $ git rev-list -

Re: [PATCH v8 4/4] git-rebase: add keep_empty flag

2012-07-18 Thread Martin von Zweigbergk
On Wed, Jul 18, 2012 at 12:10 AM, Johannes Sixt wrote: > Am 7/18/2012 8:20, schrieb Martin von Zweigbergk: >> On Fri, Apr 20, 2012 at 7:36 AM, Neil Horman wrote: >>> pick_one () { >>> ff=--ff >>> + >>> case "$1" in -n) sha1=$2; ff= ;; *) sha1=$1 ;; esac >>> case "$force_r

Re: [PATCH v8 4/4] git-rebase: add keep_empty flag

2012-07-18 Thread Johannes Sixt
Am 7/18/2012 8:20, schrieb Martin von Zweigbergk: > On Fri, Apr 20, 2012 at 7:36 AM, Neil Horman wrote: >> pick_one () { >> ff=--ff >> + >> case "$1" in -n) sha1=$2; ff= ;; *) sha1=$1 ;; esac >> case "$force_rebase" in '') ;; ?*) ff= ;; esac >> output git rev-parse

Re: [PATCH] diff: respect --no-ext-diff with typechange

2012-07-18 Thread Jeff King
On Wed, Jul 18, 2012 at 02:23:29AM -0400, Jeff King wrote: > > * The use of userdiff_find_by_path() in run_diff_cmd() may be iffy; > >it is probably OK to override diff.external with a more specific > >per-path configuration, but I think an external diff specified by > >the GIT_EXTERN