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

Re: device files should be handled by git

From
Johan Herland <johan@herland.net>
Date
Jun 27, 2013, 13:24 UTC
Message-ID
<CALKQrgckBB0Nkf0k9iNcoH2fpqPREEWLrL9eXsZXGK1g=yt-iQ@mail.gmail.com>
In-Reply-To
<20130627130842.GB27497@paksenarrion.iveqy.com>
On Thu, Jun 27, 2013 at 3:08 PM, Fredrik Gustafsson <iveqy@iveqy.com> wrote:
Show 8 quoted lines
> On Wed, Jun 26, 2013 at 08:27:56PM -0700, Perry Wagle wrote:
>> 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.
>
> In linux you can't create device files if your not root. On windows
> those files won't even exists (afaik).
>
> Wouldn't this be very unportable and hard to use (meaning that you need
> to handle your git repo as root or give git setuid root)?

Device files will probably never be supported by Git for the reasons mentioned by Fredrik. If anything, etckeeper (http://joeyh.name/code/etckeeper/) would be a much more appropriate place to support this, although I don't think it currently does. Alternatively, you could follow the suggestions of http://superuser.com/questions/440873/git-unable-add-device-file (and elsewhere), and write a script for generating the device files, rather than storing them as-is.

...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Fredrik Gustafsson
Message 3 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.