I am a CA lawyer. Assuming you stayed at the scene and exchanged your name, if this happened in the Los Angeles area, you will not go to jail. However, you will receive a ticket.