git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Enrico Weigelt <weigelt@metux.de>
To: Jonathan Nieder <jrnieder@gmail.com>, git@vger.kernel.org
Subject: Re: Using a different index and HEAD
Date: Sat, 13 Nov 2010 20:41:29 +0100	[thread overview]
Message-ID: <20101113194128.GA8878@nibiru.local> (raw)
In-Reply-To: <20101113160546.GA5535@burratino>

* Jonathan Nieder <jrnieder@gmail.com> schrieb:

Hi,

> > Is there already a way to tell other locations for index file
> > and current HEAD symref on command line (just like we have w/
> > --work-dir etc) ?
> 
> You might like the git-new-workdir script, available from
> contrib/workdir.

I didnt have time for a deeper look yet, but I'll try to explain
my ideas a bit more:

Suppose I choose to work on an branch "one" (which probably is
synced to some remote). That will create some temporary (local)
WIP branch, where each file change from the IDE (working in a
separate workdir or maybe completely w/o one) gets committed
immediately. Now I click some "commit" button and it asks me what
exactly to commit - I now can interactively selected changes to
be committed (maybe even on single changelets within a file),
they'll be squashed together (maybe involving some rebase magic)
and an commit final commit object is created on the "one" branch.
After this, the local WIP branch gets rebased to latest "one".


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------

  parent reply	other threads:[~2010-11-13 19:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-13 15:29 Using a different index and HEAD Enrico Weigelt
2010-11-13 17:25 ` Jakub Narebski
2010-11-21 15:16   ` Tomas Carnecky
     [not found] ` <20101113160546.GA5535@burratino>
2010-11-13 19:41   ` Enrico Weigelt [this message]
2010-11-13 20:21     ` Jonathan Nieder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101113194128.GA8878@nibiru.local \
    --to=weigelt@metux.de \
    --cc=git@vger.kernel.org \
    --cc=jrnieder@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).