When working with subversion we could identify a trunk snapshot by revision number. Also we could download a specific development revision number from the server, anytime. Can we identify a snapshot with git and can we download the same snapshot(revision like) later in time in a simmilar way? All I can say is that the above code is found in a rather recent development snapshot, but I don't know how to precisely identify it.The commit for the code of interest can be found with git blame, or this view (https://gitlab.com/freepascal.org/fpc/source/-/blame/main/rtl/sinclairql/sysutils.pp#L136) in gitlab. This shows that the latest changes were applied in commit 02e63411617bcd6f99f666cf341fba063fb47532. You can view the state of the whole source tree for that particular commit (https://gitlab.com/freepascal.org/fpc/source/-/tree/02e63411617bcd6f99f666cf341fba063fb47532). When in the files view of this commit there should be a download icon (next to the clone button) to download a snapshot in zip or some other formats. Or click on this link (https://gitlab.com/freepascal.org/fpc/source/-/archive/02e63411617bcd6f99f666cf341fba063fb47532/source-02e63411617bcd6f99f666cf341fba063fb47532.zip).
When working with subversion we could identify a trunk snapshot by revision number. Also we could download a specific development revision number from the server, anytime. Can we identify a snapshot with git and can we download the same snapshot(revision like) later in time in a simmilar way? All I can say is that the above code is found in a rather recent development snapshot, but I don't know how to precisely identify it.The commit for the code of interest can be found with git blame, or this view (https://gitlab.com/freepascal.org/fpc/source/-/blame/main/rtl/sinclairql/sysutils.pp#L136) in gitlab. This shows that the latest changes were applied in commit 02e63411617bcd6f99f666cf341fba063fb47532. You can view the state of the whole source tree for that particular commit (https://gitlab.com/freepascal.org/fpc/source/-/tree/02e63411617bcd6f99f666cf341fba063fb47532). When in the files view of this commit there should be a download icon (next to the clone button) to download a snapshot in zip or some other formats. Or click on this link (https://gitlab.com/freepascal.org/fpc/source/-/archive/02e63411617bcd6f99f666cf341fba063fb47532/source-02e63411617bcd6f99f666cf341fba063fb47532.zip).
trev@macmini8 [/usr/local/share/fpcsrc/3.3.1] $ git describe
3.3.1-9458-gc616832792
trev@macmini8 [/usr/local/share/fpcsrc/3.3.1] $ git rev-parse HEAD
c6168327925ff1bc96f06fe9df952b147bf2b8de
trev@macmini8 [/usr/local/share/fpcsrc/3.3.1] $ git rev-parse --short HEAD
c616832792
trev@macmini8 [/usr/local/share/fpcsrc/3.3.1] $ git log -1
commit c6168327925ff1bc96f06fe9df952b147bf2b8de (HEAD -> main, origin/main, origin/HEAD)
Author: Pierre Muller <pierre@...>
Date: Mon Oct 18 22:41:38 2021 +0000
Disable utils packages for wasi OS if required package is not supported or if labels are
used (which is not supported for wasm32 target CPU)
git clone [remote_repo] my_repo
cd my_repo
git reset --hard c6168327925ff1bc96f06fe9df952b147bf2b8de
git checkout -b new_branch_name c6168327925ff1bc96f06fe9df952b147bf2b8de