git/list[1] front-page[2] threads[3] people[4] search[5] about
 

device files should be handled by git

From
PWPerry Wagle <wagle@mac.com>
Date
Jun 27, 2013, 03:27 UTC
Message-ID
<21095513-708E-4F82-88D0-A312B74BA7F4@mac.com>
Hi --
I have a disk image of a small embedded device whose root file system I'd like to check-in to git as a means of distributing its GPL'd software.  In that disk image are device files, which GIT studiously ignores.  If symlinks are handled (contents being the path that the symlink points at), I don't see why device files can't be handled (contents being the type (char or block) and the major and minor device number).  TAR, for example, handles this fine, except that using tar in git sort-of goes against the granularity of the objects being modified (like adding a bunch of extra "sd??" devices), such that you are modifying a whole tar ball instead of the individual (device) files.
Is there a reason not to handle device files other than "its not traditional"?  That's the only reason given in google or the IRC channel.
Thanks!
-- Perry
Next: Fredrik Gustafsson
Message 1 of 3 in “device files should be handled by git”
  1. Perry WagleJun 27, 2013
  2. Fredrik GustafssonJun 27, 2013
  3. Johan HerlandJun 27, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.