I have this option on my car

I am wondering how the hill hold function works

When the hill hold is activated with the engine running, the green light is displayed in the dash.
When you switch the ignition of,f the red light illuminates and you can hear the handbrake being applied

My question is - does the hill hold work. On a diff lock, because it doesn't appear to work the handbrake

Any ideas?