[Bash-completion-devel] [Bash-completion-commits] [SCM] bash-completion branch, master, updated. 0f2656669fbdf627a3ddf11bdb72e3ec9cef68fd

David Paleino d.paleino at gmail.com
Tue Mar 31 18:13:52 UTC 2009


On Tue, 31 Mar 2009 20:10:17 +0300, Ville Skyttä wrote:

> On Tuesday 31 March 2009, David Paleino wrote:
> > On Mon, 30 Mar 2009 23:50:53 +0300, Ville Skyttä wrote:
> > > On Monday 30 March 2009, Guillaume Rousse wrote:
> > > > Guillaume Rousse a écrit :
> > > > > The following commit has been merged in the master branch:
> > > > > commit 0924d059c6c845069b10482882c821088ccaeefa
> > > > > Merge: 91daa8de58a6e88d5a4b55621e2e7d5e732c65ea
> > > > > dc88329e8eea8424f2e1dc7efc50a80e240708c4 Author: Guillaume Rousse
> > > > > <guillomovitch at zarb.org>
> > > > > Date:   Mon Mar 30 22:02:55 2009 +0200
> > > > >
> > > > >     Merge branch 'master' into guillomovitch
> > > >
> > > > This seems to be a commit related to my own local branch, I don't
> > > > understand why it does generate a mail here... I just hop I don't screw
> > > > up anything in master branch.
> > >
> > > Happened to me too once, I don't claim to understand it either but it
> > > didn't seem to have any bad effects.  The web UI doesn't show any changes
> > > the usual way either, just "Simple merge", just as it did for me as well.
> >
> > But "git log" is a mess, and cherry-picking isn't easy.
> >
> > What are you guys using?
> 
> Plain git CLI.

Eh, I meant "which git command", sorry for not being clearer.

> > What's your development workflow?
> 
> git pull -u, hack something, test, commit locally, push.  Sometimes there are 
> longish time periods between these steps, sometimes commit amending, rebasing 
> etc are involved as well.

Ah. Well, I read somewhere that rebasing, when working on shared, published
repsoitories, is *evil*. OTOH, I can't recall why it's bad -- and I never used
it, really. Why are you using it? In which cases?

> > There shouldn't be any merges in master.
> >
> > So log messages like:
> >
> > Merge branch 'master' of
> > git+ssh://scop-guest@git.debian.org/git/bash-completion/bash-completion
> >
> > should'nt really exist, sorry :)
> 
> I think it occurs in this scenario:
> 
> 1) git pull -u --> everything up to date now
> 2) git commit --> commit locally, no push
> 3) Meanwhile, someone else commits something to the origin branch
> 4) git push
> 
> (There might be another "git pull -u" between 3) and 4), and the merge
> message might come from that.)

-u, --update-head-ok
    By default git-fetch refuses to update the head which corresponds
    to the current branch. This flag disables the check. This is purely
    for the internal use for git-pull to communicate with git-fetch,
    and unless you are implementing your own Porcelain you are not
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    supposed to use it.
    ^^^^^^^^^^^^^^^^^^

Is there any reason why you -u? I never used it, and I didn't knew of its
existence either. May it be the root of all our problems?

> [..]
> > I'd like to have a clean log, so as in future we could have some
> > automagical tool generating a changelog from "git log" (as git-dch now does
> > for debian/changelog)
> 
> But if done properly, the above amend procedure will create a clean log (only 
> one commit entry).

Yes, sure, but...

> When not done properly, it'll create a mess which is now visible in top of
> master's log,

..we should avoid this :P

> thanks to yours truly.

My what?

> OTOH, I'm not sure if amending works too nicely or at all if the commit one
> wishes to amend is not the latest one (there's the -c/-C option to commit but
> I'm not sure if I've ever used it).

No, amend works only for the last commit. I've read it somewhere, and also
on the manpage :)

--amend
    Used to amend the tip of the current branch [..]

The -c|-C option is to retain commit log and authorship -- I've used it when
cherry-picking those commits from master to frozen/1.0 (you'll see that they
don't have the same hash, since I changed something and re-committed using your
authorship information and commit log)


Ciao,
David

-- 
 . ''`.  Debian maintainer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://snipr.com/qa_page
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20090331/309e76c6/attachment.pgp 


More information about the Bash-completion-devel mailing list