this should be changed as the commit parameter (rename it to soft please) should be a boolean

true mean soft commit
false hard commit