Add an initial .gitignore file.

Signed-off-by: mulhern <amulhern@redhat.com>
Do not start using next_line until needed.

If the while loop is reached file_content will not have changed.

Signed-off-by: mulhern <amulhern@redhat.com>
Do not check for NULL value for ret

If it is NULL, g_strdup will return NULL.

Signed-off-by: mulhern <amulhern@redhat.com>
Discard const modifier on ret

Signed-off-by: mulhern <amulhern@redhat.com>
Put const modifier on some things very heavily

Also move const to alway be on the right of the part of the type it modifies.

Signed-off-by: mulhern <amulhern@redhat.com>