git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git - file types / metadata
@ 2020-02-21  8:39 Kevin Swinton
  0 siblings, 0 replies; only message in thread
From: Kevin Swinton @ 2020-02-21  8:39 UTC (permalink / raw)
  To: git

Hi

Currently converting git (using libgit2) to run on the RISC OS
operating system. There's one specific requirement this OS provides
that, after discussion with the libgit2 folk, I'd be grateful for your
expertise and experience on:

The RISC OS filesystem is not Unix-like. It doesn't use file
extensions like ".txt", but instead associates a 12-bit file type with
each file, to identify what sort of file it is (e.g. 0xfff=text file)

So the filemode value in a tree entry doesn't really apply. I can see
libgit2 uses a uint16_t to store this, and it appears to be written
into the object database in text form, so for a normal file in a tree
object, if I dump it on-screen I see this ASCII sequence: 100644.

Here's the thought: could git introduce some form of "custom" filemode
identifier? For example, a value of 017xxxx could be used to indicate
to git that it's to be treated the same as 0100644, but that those
bottom 12 bits of the filemode could be interpreted differently (in
this case with RISC OS it would actually provide exactly what's
needed).

(Feedback from libgit2 folk is that in future some kind of file
metadata ability - more general than this - could have other uses.)

Any thoughts/feedback/clarity on git policy, appreciated

regards

Kevin Swinton

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-21  8:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-21  8:39 git - file types / metadata Kevin Swinton

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).