It may mean that he really liked the way your hair smelled and he wanted to get more of it.
He may also be quite familiar with how you smell in general.
When he gets close and starts to hug you, he wants to get more of that smell.
He finds himself completely drawn to it.
Your hair is a big part of your general scent.
The closer he is to that scent that he is already familiar with, the more he may want to breathe in the smell from its source.
The source of your scent may be in your hair or he may think it is.
Hence, when he hugs you, he is going to that source.
He wants to take in as much of that smell as he can.
He finds that smell to be very pleasant.
He wants to breathe in more of it.
Your hair would give him the best place to take in as much of it as possible.
A guy doing this is showing approval.
He likes the way you smell.
It makes him feel really good when he is around it.
It triggers pleasure in him and he may find it hard to stay away from it.
Something that makes him feel this good is never enough.
However, this is not just about the smell of your hair.
How often has he smelled your hair while hugging?
If he has done this several times, there is a good chance that he is into you.
Smell is a very big part of attraction.
He is not only attracted to the smell but how it compliments and blends with your body chemistry.
If you notice that you are the only one he tends to do this with, he has singled you out.
You have a unique smell that he can’t get enough of.
This smell works really well with your body chemistry.
The same smell on someone else may not work.
This is because we all have different body chemistry.
You may notice that he wants to get close to you when you are around.
He may want to hug you often.
Even when he doesn’t hug, he may always seem to be real close to you.
He breaks that personal space wall that most people have.
He leans into you more and may try touching your clothing or brushing past you softly.
When he does this, he is using his body language to show attraction.
He is wanting to be as close to that smell as possible in order to experience more of your essence and possibly have some of it rub off on him.
This is a part of you that he gets to carry with him as he goes on with his day.
He gets to keep you close to mind even though you may not be physically there.
You should observe all of his behavior.
The more he tries to get closer to you, the more he is showing that he is attracted to you.
By ensuring that your body language is responsive in return by maintaining the closeness, he may realize that you like him too and may take the next step in asking you out.