git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Missing strptime
@ 2007-09-24 23:35 mkraai
  2007-09-25  0:30 ` Johannes Schindelin
  0 siblings, 1 reply; 4+ messages in thread
From: mkraai @ 2007-09-24 23:35 UTC (permalink / raw)
  To: git

Howdy,

I'm porting Git to QNX.  Its C library doesn't provide strptime, so I'd 
was planning to use the Gnulib implementation.  Is that OK?  If so, should 
I try to leave it as close to upstream's version as possible or should I 
remove all of the unneeded cruft?  If not, is there an alternative 
implementation I should use?

Matt

P.S. Sorry for the footer.

The server made the following annotations 
---------------------------------------------------------------------------------
This message contains information that may be privileged or confidential and is the property of Beckman Coulter, Inc. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

---------------------------------------------------------------------------------

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

* Re: Missing strptime
  2007-09-24 23:35 Missing strptime mkraai
@ 2007-09-25  0:30 ` Johannes Schindelin
  2007-09-25  0:52   ` Linus Torvalds
  0 siblings, 1 reply; 4+ messages in thread
From: Johannes Schindelin @ 2007-09-25  0:30 UTC (permalink / raw)
  To: mkraai; +Cc: git

Hi,

On Mon, 24 Sep 2007, mkraai@beckman.com wrote:

> I'm porting Git to QNX.

That's nice!

> Its C library doesn't provide strptime, so I'd was planning to use the 
> Gnulib implementation.  Is that OK?  If so, should I try to leave it as 
> close to upstream's version as possible or should I remove all of the 
> unneeded cruft?  If not, is there an alternative implementation I should 
> use?

The only user for strptime is convert-objects, a program that should 
probably move to contrib/ anyway.  It was used once, a long time ago, to 
convert from the old format, which hashed the compressed contents, to the 
current format, which hashes the contents _before_ compression.

AFAIAC if a similar need should arise, the better alternative would be to 
write git-fast-export, a tool which dumps the contents of a repository 
suitable to pipe into git-fast-import.

FWIW in mingw.git, we disabled convert-objects already a long time ago.

Ciao,
Dscho

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

* Re: Missing strptime
  2007-09-25  0:30 ` Johannes Schindelin
@ 2007-09-25  0:52   ` Linus Torvalds
  2007-09-25  1:03     ` Johannes Schindelin
  0 siblings, 1 reply; 4+ messages in thread
From: Linus Torvalds @ 2007-09-25  0:52 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: mkraai, git



On Tue, 25 Sep 2007, Johannes Schindelin wrote:
> 
> The only user for strptime is convert-objects, a program that should 
> probably move to contrib/ anyway.  It was used once, a long time ago, to 
> convert from the old format, which hashed the compressed contents, to the 
> current format, which hashes the contents _before_ compression.

Actually, it also changes the date format, I think.

> AFAIAC if a similar need should arise, the better alternative would be to 
> write git-fast-export, a tool which dumps the contents of a repository 
> suitable to pipe into git-fast-import.

Agreed. It probably might as well just be moved to contrib and let it 
bitrot.

		Linus

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

* Re: Missing strptime
  2007-09-25  0:52   ` Linus Torvalds
@ 2007-09-25  1:03     ` Johannes Schindelin
  0 siblings, 0 replies; 4+ messages in thread
From: Johannes Schindelin @ 2007-09-25  1:03 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: mkraai, git

Hi,

On Mon, 24 Sep 2007, Linus Torvalds wrote:

> On Tue, 25 Sep 2007, Johannes Schindelin wrote:
> > 
> > The only user for strptime is convert-objects, a program that should 
> > probably move to contrib/ anyway.  It was used once, a long time ago, 
> > to convert from the old format, which hashed the compressed contents, 
> > to the current format, which hashes the contents _before_ compression.
> 
> Actually, it also changes the date format, I think.

Yes, right, that was actually why strptime() was needed.

Ciao,
Dscho

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

end of thread, other threads:[~2007-09-25  1:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-24 23:35 Missing strptime mkraai
2007-09-25  0:30 ` Johannes Schindelin
2007-09-25  0:52   ` Linus Torvalds
2007-09-25  1:03     ` Johannes Schindelin

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