Wireshark-dev: Re: [Wireshark-dev] impossible to commit my changes

From: Pascal Quantin <pascal.quantin@xxxxxxxxx>
Date: Mon, 23 Mar 2015 23:22:33 +0100
2015-03-23 23:20 GMT+01:00 Aurélien Terrestris <aterrestris@xxxxxxxxx>:
Hello

when trying to commit my changes, I get this result :

# git commit -m 'RRH dissector'
epan/dissectors/packet-rrh.c:  FT_IPv6:
proto_tree_add_item(rrh_tree, hf_rrh_ipv6, tvb, pos, 6,
[[ENC_BIG_ENDIAN]-->[ENC_NA]]);
epan/dissectors/packet-rrh.c:  FT_IPv6:
proto_tree_add_item(rrh_tree, hf_rrh_ipv6, tvb, pos, 6,
[[ENC_BIG_ENDIAN]-->[ENC_NA]]);


And the status command says nothing was done :

# git status
On branch rrh
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        modified:   epan/dissectors/Makefile.common
        new file:   epan/dissectors/packet-rrh.c

Do you have any idea of what's is going wrong ?

However, compiling and running the program work fine.

Hi Aurélien,

the pre-commit script is indicating that you some errors need to be fixed: for an IPv6 address, the encoding type should be ENC_NA and not ENC_BIG_ENDIAN.
Once you fix this error, the commit will succeed.

Regards,
Pascal.