How to calculate the commitHash?
How to proof that BB directory has not change by comparing it with the commitHash?
- Helmut
CommitHash
-
- Posts: 1700
- Joined: Tue Sep 17, 2013 12:21 am
- Location: Russia
Re: CommitHash
You can run:Zinn wrote:How to calculate the commitHash?
How to proof that BB directory has not change by comparing it with the commitHash?
Code: Select all
git status
Re: CommitHash
Well done, but it doesn't help me. Let me try again.
Let me have a BlackBox program where I find the following entry in System/Rsrc/Strings.odc:
appVersion 1.7-a1
appVerName BlackBox Component Builder 1.7 Alpha 1
fileVersion 1.7.0.52
buildNum 52
buildDate 2015-01-26
commitHash 282e0256c76772308d158ea4d4c11574f95d9d42
How can I proof that this BlackBox program here is an original one and not change by any experiment?
Let me have a BlackBox program where I find the following entry in System/Rsrc/Strings.odc:
appVersion 1.7-a1
appVerName BlackBox Component Builder 1.7 Alpha 1
fileVersion 1.7.0.52
buildNum 52
buildDate 2015-01-26
commitHash 282e0256c76772308d158ea4d4c11574f95d9d42
How can I proof that this BlackBox program here is an original one and not change by any experiment?
-
- Posts: 1700
- Joined: Tue Sep 17, 2013 12:21 am
- Location: Russia
Re: CommitHash
I have found the answer.
You need to clone the repository:
then you need to restore the state which has such commit hash
then you need to copy this BlackBox you want to compare over the files in the cloned repository.
And then run:
If nothing is changed, you will see the only two files in status, which were modified during the build process:
System/Rsrc/Strings.odc
Win/Rsrc/BlackBox.rc
You need to clone the repository:
Code: Select all
git clone https://github.com/BlackBoxCenter/blackbox.git
Code: Select all
git reset --hard 282e0256c76772308d158ea4d4c11574f95d9d42
And then run:
Code: Select all
git status
System/Rsrc/Strings.odc
Win/Rsrc/BlackBox.rc