[LLVMdev] git Status

Mark Lacey 641 at rudkx.com
Mon Aug 22 17:25:56 PDT 2011


David,

A few comments.


> Naming Upstream
> ---------------
>
> The intial clone from upstream results in a git remote reference with
> the rather unhelpful name of "origin."  As more remote sources get
> added, it is easy to forget what "origin" is.  Therefore, add a remote
> with a more descriptive name.
>
> git remote add llvm-upstream http://llvm.org/git/llvm.git master
>
>
If the intent is to rename origin, this can be done directly:
  git remote rename origin llvm-upstream



> Updating LLVM - no local changes
> --------------------------------
>
>
Splitting this into "no local changes" / "with local changes" seems
unnecessarily complicated. Why not just recommend doing 'git pull --rebase'
all of the time?

I have to ask as well - is a linear history really desired? That seems to be
the intent of your instructions.

I ask because for something like a reasonably sized feature that might have
multiple commits, having the merge history in place can be useful, if only
to separate the set of related changes from sets of unrelated changes. It
also aids in reverting an entire feature composed of multiple commits.

One other comment - the way I use git (and from what I've read I am not
alone), I end up committing multiple times per hour / many times per day,
often into different branches. I then go back and use rebase to reorder and
squash commits into logically related bite-sized chunks (e.g. combine some
commits related to feature A into one or more commits, some related to
feature B into one or more commits, and then there might be three bug fix
commits for bugs C, D, and E.). It might be helpful to add some guidelines
related to this that are in line with current LLVM review process - somewhat
the reverse scenario of someone asking for commits to be split. In this
case, they probably don't want to see 15 different commits that in total add
75 lines of code to feature A.

Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110822/f6c37ff0/attachment.html>


More information about the llvm-dev mailing list