CommitHash

Post Reply
Zinn
Posts: 476
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main
Contact:

CommitHash

Post by Zinn »

How to calculate the commitHash?
How to proof that BB directory has not change by comparing it with the commitHash?
- Helmut
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: CommitHash

Post 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.
Zinn
Posts: 476
Joined: Tue Mar 25, 2014 5:56 pm
Location: Frankfurt am Main
Contact:

Re: CommitHash

Post 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?
Ivan Denisov
Posts: 1700
Joined: Tue Sep 17, 2013 12:21 am
Location: Russia

Re: CommitHash

Post 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
Post Reply