From: Fabio Augusto Dal Castel <fdcastel@gmail.com>
To: git@vger.kernel.org
Subject: Re: [RFC] New command: 'git snapshot'.
Date: Tue, 10 Feb 2009 18:48:33 -0200 [thread overview]
Message-ID: <38cfbb550902101248v16f0f0f0v6a48cabf498317cf@mail.gmail.com> (raw)
In-Reply-To: <38cfbb550902101232l4c83b6dfjc70e1e2f79a8c3c1@mail.gmail.com>
Giuseppe
> I use stash when I want to move away from the current
> hacking because a new, more urgent change must be done
> somewhere else
Yes. That is exactly what stash is for. Temporary fixes. Now...
> Instead, I see a usecase for git snapshot for progressive
> temporary snapshot while working towards a more complex feature
> while needing temporary intermediate checkpoints
That's the idea. You could take a snapshot automatically every x
minutes. For example: I'm testing it taking a snapshot on every
build/compile of my project (and it is going fine, BTW).
> similar to what I currently achieve using git commit (a first
> time) and git commit --amend as my work progresses.
Except that, in this solution, you have only ONE saved state.
Also, it needs to be done manually. I wanted something automatic (like
John Wiegley's sugestion)
> In this respect, I wouldn't agree with the first difference you
> remarked, but that's just the usecase I have in mind.
Making another analogy: I see stash like a stack (you push/stash, and
after you pop/apply). And I don't see stacks as a good long-term
storages <g> (ok, you CAN 'cheat' and see all items other than the
first)
Snapshots would be like a queue: You can keep it entirely, or you can
keep only the last 'n' interesting snapshots, removing the others.
> I'm not sure I like the idea of creating these branches with these
> branchnames. What about using another refs/ subtree?
I'm also not sure <g>. The idea of refs/ is a good one, too (and could
solve the problem of 'where to store the original index?'). But my
first idea of using branches was to avoid a load of another
'maintenance' commands ('snapshot list', 'snapshot delete', etc) and
to use a more known facility (branches).
Best regards,
Fabio.
next prev parent reply other threads:[~2009-02-10 20:50 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-09 18:54 [RFC] New command: 'git snapshot' Fabio Augusto Dal Castel
2009-02-09 19:52 ` Giuseppe Bilotta
[not found] ` <38cfbb550902101232l4c83b6dfjc70e1e2f79a8c3c1@mail.gmail.com>
2009-02-10 20:48 ` Fabio Augusto Dal Castel [this message]
2009-02-09 22:36 ` Brandon Casey
2009-02-10 4:51 ` Sitaram Chamarty
2009-02-10 19:47 ` Jon Loeliger
2009-02-10 20:31 ` Junio C Hamano
2009-02-11 1:22 ` Sitaram Chamarty
2009-02-10 20:40 ` Fabio Augusto Dal Castel
2009-02-10 23:00 ` Jeff King
2009-02-10 23:08 ` Junio C Hamano
2009-02-10 23:38 ` Jeff King
2009-02-10 23:39 ` Geoffrey Lee
2009-02-11 13:43 ` Jeff King
2009-02-11 9:04 ` Matthieu Moy
2009-02-11 20:40 ` Fabio Augusto Dal Castel
-- strict thread matches above, loose matches on Subject: below --
2009-02-10 23:58 Ulrik Sverdrup
2009-02-11 0:05 ` Ulrik Sverdrup
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=38cfbb550902101248v16f0f0f0v6a48cabf498317cf@mail.gmail.com \
--to=fdcastel@gmail.com \
--cc=git@vger.kernel.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).