Page 1 of 1

CommitHash

Posted: Fri Jan 22, 2016 10:57 am
by Zinn
How to calculate the commitHash?
How to proof that BB directory has not change by comparing it with the commitHash?
- Helmut

Re: CommitHash

Posted: Fri Jan 22, 2016 3:51 pm
by Ivan Denisov
Zinn wrote:How to calculate the commitHash?
How to proof that BB directory has not change by comparing it with the commitHash?
You can run:

Code: Select all

git status
It will show if any file had been changed, added or removed.

Re: CommitHash

Posted: Sat Jan 23, 2016 4:10 pm
by Zinn
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?

Re: CommitHash

Posted: Tue Jan 26, 2016 7:03 pm
by Ivan Denisov
I have found the answer.

You need to clone the repository:

Code: Select all

git clone https://github.com/BlackBoxCenter/blackbox.git
then you need to restore the state which has such commit hash

Code: Select all

git reset --hard 282e0256c76772308d158ea4d4c11574f95d9d42
then you need to copy this BlackBox you want to compare over the files in the cloned repository.
And then run:

Code: Select all

git status
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