News for hackers. Stuff that matters.
Re:Git Files Hidden in Plain Sight by talkingtab on Tuesday August 01, 2023 @09:08AM (#36955465)
Is this a git issue or a github issue? I know git is being (mis)used, but the issues seem to be with github. Maybe a better title for those of us with no interest in github would be "Github hides git files in plain sight" ?
Re:Git Files Hidden in Plain Sight by nebulous1 on Tuesday August 01, 2023 @09:45AM (#36955872)
I think there is no issue. But, yes, it seems like if there is one then it's with the github UI.
Re:Git Files Hidden in Plain Sight by everybodyknows on Tuesday August 01, 2023 @10:27AM (#36956352)
Seems so:

  $ git init
  $ git cat-file blob junio-gpg-pub
  fatal: Not a valid object name junio-gpg-pub
  $ git version
  git version 2.25.1
Re:Git Files Hidden in Plain Sight by semiquaver on Tuesday August 01, 2023 @10:44AM (#36956587)
The `junio-gpg-pub` key is a blob in the git repo for git, ie

  ssh://git.kernel.org/pub/scm/git/git.git
You won’t see it in any repo, just that one. This is not an easter egg in the git binary, just a quirky way to transmit a signing pubkey via a non-tree git sidechannel within the git source repo.
Re:Git Files Hidden in Plain Sight by WorldMaker on Tuesday August 01, 2023 @10:58AM (#36956822)
It's not an issue with either, they are both working "as intended". Both examples are storing data in git's object database. Git and GitHub clone the object databases as fully as they can. To keep the objects "live" in the database both examples use non-standard git refs. Git's raw object DB format was designed to be extensible so it supports non-standard refs that don't reflect (aren't reflected in) high-level git concepts (such as branches and commits). Because these examples use such non-standard refs there's not a standard UI for them in GitHub.

It's probably not a great idea to use or rely on non-standard refs in general because it may conflict with other tools or future git capabilities, even if there were a "standard UI for unknown refs".

Re:Git Files Hidden in Plain Sight by theamk on Tuesday August 01, 2023 @01:38PM (#36959465)
* * *