first of all, thank you in advance for your help.
I'm not an expert on git so this is why I'm here...
I'm a developer of a driver in a embedded environment written in C. I want to work with two different driver structures and use git for svc.
For development (branch development) (in this case the driver is developed in "stand alone" mode, with: unit test, build, ecc..):
build\
object files.o
project.map
project.srec
project.lst
config\
configuration1.h
configuration2.h
driver\
src1.c
src2.c
header1.h
test\
other files
...
doc\
documentation.pdf
makefile
for production (branch master) (in this case the driver is integrated in a project as submodule), and the project needs only the diver sources, headers and documentation:
driver\
src1.c
src2.c
header1.h
doc\
documentation.pdf
So, for production we don't want to see all directories or files that are only useful during development phase...
Now my questions:
is it possible to have two branches where the project is structured in that ways ?
is a correct style of work ?
Any suggestions?
Thank you,
Claudio