git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] fast-import: note deletion command
@ 2011-09-18 20:07 Dmitry Ivankov
  2011-09-18 20:35 ` Jonathan Nieder
  0 siblings, 1 reply; 10+ messages in thread
From: Dmitry Ivankov @ 2011-09-18 20:07 UTC (permalink / raw)
  To: Git List, Jonathan Nieder, David Barr, Shawn O. Pearce

Hi,

fast-import is able to write notes provided a command
N <note_content_data_specification> <commit_specification>

There is no documented command to delete a note. It can't be
easily replaced with Delete command on notes tree because
of notes fanout.

But fast-import interprets 0{40} data_specification as a note
deletion command. It is consistent with fast-import internals
where null_sha1 is used for absent/unknown object. But is
not consistent with file Modify command nor looks like a common
convention in git ui.

So the questions are:
- should 0{40} not be treated as deletion toggle? Downside is that
it is used as one in t/t9301-fast-import-notes.sh.
- how should a documented way to delete notes look like?
ND commit_sha1 # One may think there are also NC, NR, NM
N delete commit_sha1
# Only :mark, full-40-byte-sha1 and 'inline' are allowed currently.
# So no clashes arise, but then one may also want M 'delete' path
# command to work too.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-09-18 21:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-18 20:07 [RFC] fast-import: note deletion command Dmitry Ivankov
2011-09-18 20:35 ` Jonathan Nieder
2011-09-18 20:39   ` Sverre Rabbelier
2011-09-18 20:59     ` Dmitry Ivankov
2011-09-18 21:03       ` fast-import wishlist (Re: [RFC] fast-import: note deletion command) Jonathan Nieder
2011-09-18 21:18     ` Branch deletion " Jonathan Nieder
2011-09-18 21:38       ` Sverre Rabbelier
2011-09-18 21:49         ` Jonathan Nieder
2011-09-18 21:54           ` Dmitry Ivankov
2011-09-18 21:55           ` Sverre Rabbelier

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).