Git development
 help / color / mirror / Atom feed
* double occurrence of filenames on command lines
@ 2007-08-29  8:11 martin f krafft
  2007-08-29 19:44 ` [PATCH] Remove duplicate pathspecs from ls-files command line Alex Riesen
  0 siblings, 1 reply; 9+ messages in thread
From: martin f krafft @ 2007-08-29  8:11 UTC (permalink / raw)
  To: git discussion list; +Cc: 439992-quiet

[-- Attachment #1: Type: text/plain, Size: 1006 bytes --]

Dear list,

While I can say something like

  git add foo bar foo
  (note the doubled foo)

when using git-add from a script, the following fails:

  $ git commit -m. foo foo
  error: pathspec 'foo' did not match any file(s) known to git.
  Did you forget to 'git add'?

I am bringing this up in the context of
http://bugs.debian.org/439992, where debcommit.pl would duplicate
a file argument under certain conditions. It's since been fixed, but
I wonder whether git-commit could be made more robust in the
presence of duplicate arguments? Or is this behaviour by choice?

PS: please keep 439992-quiet@bugs.debian.org on Cc.

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
 
an egg has the shortest sex-life of all: if gets laid once; it gets
eaten once. it also has to come in a box with 11 others, and the
only person who will sit on its face is its mother.
 
spamtraps: madduck.bogus@madduck.net

[-- Attachment #2: Digital signature (see http://martin-krafft.net/gpg/) --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2007-08-30  5:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-29  8:11 double occurrence of filenames on command lines martin f krafft
2007-08-29 19:44 ` [PATCH] Remove duplicate pathspecs from ls-files command line Alex Riesen
2007-08-29 20:44   ` Junio C Hamano
2007-08-29 21:04     ` martin f krafft
2007-08-29 21:15     ` Alex Riesen
2007-08-29 21:36       ` David Kastrup
2007-08-30  1:25         ` Junio C Hamano
2007-08-30  5:52           ` David Kastrup
2007-08-29 20:57   ` martin f krafft

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox