From: Pavel Roskin <proski@gnu.org>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Yann Dirson <ydirson@altern.org>,
Catalin Marinas <catalin.marinas@gmail.com>,
git <git@vger.kernel.org>, Charles Lever <cel@citi.umich.edu>
Subject: Re: StGIT: "stg new" vs "stg new --force"
Date: Tue, 24 Jan 2006 13:17:51 -0500 [thread overview]
Message-ID: <1138126671.24415.28.camel@dv> (raw)
In-Reply-To: <20060124175443.GA29670@fieldses.org>
On Tue, 2006-01-24 at 12:54 -0500, J. Bruce Fields wrote:
> On Tue, Jan 24, 2006 at 12:30:23AM -0500, Pavel Roskin wrote:
> > On Fri, 2006-01-20 at 13:22 -0500, J. Bruce Fields wrote:
> > > I tend to use stg refresh -es as a quick (well, not quite as quick as
> > > I'd like) way to look at the current patch. Often I leave it up while
> > > I'm working (editing the patched files). So if exiting from stg refresh
> > > -es suddenly started overwriting my working files, I'd be very
> > > unhappy....
> >
> > If I understand correctly, "stg refresh" only modifies the repository,
> > not the files in the local directory.
>
> Well, yeah, but the reason that makes sense is that it's modifying the
> repository to bring it up to date with the working directory.
Yes. As it stands now, the update is made using the local state after
editing. If the patch becomes editable, the update will use the local
state before editing. It would still fit the original semantic as you
described it.
> > This shouldn't change.
>
> So after you hand-edit the diff and exit "stg refresh -es", the top of
> the current patch will no longer agree with the state of the working
> directory. What are you going to do on the next refresh?
Put remaining changes to the repository.
> Or on the
> next push or pop?
Right now - protest loudly about local changes. In the future - proceed
cautiously if there are no conflicts.
> This seems a little confusing.
Try removing the whole repository while "stg refresh" is running. THAT
would be confusing :-)
Seriously, it would be nice to have an editor that would allow to edit
the patch and see the resulting file and vice versa. Maybe emacs could
be hacked to do it.
--
Regards,
Pavel Roskin
next prev parent reply other threads:[~2006-01-24 18:18 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-13 9:24 StGIT: "stg new" vs "stg new --force" Pavel Roskin
2006-01-13 9:34 ` Karl Hasselström
2006-01-16 8:18 ` Catalin Marinas
2006-01-17 17:01 ` Pavel Roskin
2006-01-17 21:57 ` Yann Dirson
2006-01-17 23:16 ` Pavel Roskin
2006-01-18 19:37 ` Yann Dirson
2006-01-19 0:49 ` Pavel Roskin
2006-01-19 21:38 ` Yann Dirson
2006-01-20 6:23 ` Pavel Roskin
2006-01-20 18:22 ` J. Bruce Fields
2006-01-24 5:30 ` Pavel Roskin
2006-01-24 17:54 ` J. Bruce Fields
2006-01-24 18:17 ` Pavel Roskin [this message]
2006-01-24 21:23 ` Catalin Marinas
2006-01-21 18:24 ` Catalin Marinas
2006-01-22 5:05 ` Pavel Roskin
2006-01-21 18:20 ` Catalin Marinas
2006-01-21 18:31 ` Catalin Marinas
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=1138126671.24415.28.camel@dv \
--to=proski@gnu.org \
--cc=bfields@fieldses.org \
--cc=catalin.marinas@gmail.com \
--cc=cel@citi.umich.edu \
--cc=git@vger.kernel.org \
--cc=ydirson@altern.org \
/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).