threads / discuss / 10001

Missing strptime

Subject: Missing strptime

## tl;dr

4 messages between Sep 24, 2007 and Sep 25, 2007.

replies: 3people: 3as markdown or json

mkraai@beckman.com· Sep 24, 2007, 23:35 UTC · lore
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.

---------------------------------------------------------------------------------
Johannes Schindelin· Sep 25, 2007, 00:30 UTC · re: mkraai@beckman.com · lore

Re: Missing strptime

Hi,
On Mon, 24 Sep 2007, mkraai@beckman.com wrote:
> I'm porting Git to QNX.
That's nice!
Show 5 quoted lines
> 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

Linus Torvalds· Sep 25, 2007, 00:52 UTC · re: Johannes Schindelin · lore

Re: Missing strptime

On Tue, 25 Sep 2007, Johannes Schindelin wrote:
Show 5 quoted lines
> 
> 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
Johannes Schindelin· Sep 25, 2007, 01:03 UTC · re: Linus Torvalds · lore

Re: Missing strptime

Hi,
On Mon, 24 Sep 2007, Linus Torvalds wrote:
Show 8 quoted lines
> 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

← back to recent threads