It seems relatively straightforward, while most gangers allegiance is obvious, some it isn't, and given how proudly they rep their gang - I think it's only sane that if you ask him "Yo, what gang ya in chummer" they will respond accordingly. Bonus point: they could then report seeing you there if you are in bad standing with the gang, or maybe outright attack you.