Re: Re: GitHub
By: Ragnarok to Digital Man on Tue Aug 25 2020 01:26 pm
> 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
> > > DM> know.
> > > DM> But that was true of the text.dat file before. The text.dat file
> > > DM> did 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- for-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..
Yup. Most of those are client-side hooks (not copied into the repo itself, so
not present in other clones) - so not useful. Some kind of server-side hook
maybe. I plan to look into it more.
digital man
Synchronet "Real Fact" #43:
Synchronet added Baja/PCMS support with v2.00a (1994).
Norco, CA WX: 93.0øF, 40.0% humidity, 3 mph NE wind, 0.00 inches rain/24hrs
--- SBBSecho 3.11-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
|