Process Flow - git add with patterns and directories
Start: Identify files in directory
Match files with pattern?
No→Skip file
Yes
Add matched file to staging area
More files?
Yes→Repeat matching
No
End: Files staged
Git scans files in directories, matches them against given patterns, and adds matched files to the staging area.