El 25/8/20 a las 00:00, Digital Man escribió:
> Re: GitHub
> By: Nightfox to Digital Man on Mon Aug 24 2020 07:24 pm
>
> > Re: GitHub
> > By: Digital Man to The Millionaire on Mon Aug 24 2020 04:20 pm
> >
> > >> Then how do you know if you have the latest version?
> >
> > DM> You run "git status". If you don't have git, well, then you don't
know.
> > DM> But that was true of the text.dat file before. The text.dat file did
> > DM> not have revision number embedded in it.
> >
> > Do you know if there's a way to have Git insert the commit IDs in the
files
> > similar to how CVS was inserting the CVS version numbers, using a tag of
> > some kind?
>
> I haven't played it yet, but apparently there is a way to have some git
commands insert blob hash (or commit-ID?) into the $Id:$ keyword embedded in
files:
>
https://stackoverflow.com/questions/1792838/how-do-i-enable-the-ident-string-fo
r-a-git-repository
>
> The problems with this are:
> 1. It's not the same format as the CVS Id keyword expansion (not even close)
> 2. The $Revision:$ keyword isn't expanded, which is what I usually use in
source files to grab/report the CVS revision of the file.
>
> But I intend to look more into it and other potential solutions to the
incrementing file revision.
>
> digital man
>
Maybe creating some kind of hook. A script that read the Id from the
file and increment it
https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks
But, i think that is not necesary had the old versioning method into the
actual git..
---
■ Synchronet ■ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
|