I´m new to the Forum, so hello to all!
I want to use git for my cisco config backupdir. In the config files, there a autogenerated lines with current username and timestamps. To ignore these lines, I generated a filter. ----snip-------------------------------------------------------------------------------------------- git config filter.ignore_cisco_auto_updates.clean "sed -e '/^! Last configuration change at/d' -e '/^! NVRAM config last updated at/d' -e '/^ntp clock-period/d' -e '/^: Written by/d' -e '/^! No configuration change since/d'" git config filter.ignore_cisco_auto_updates.smudge "sed -e '/^! Last configuration change at/d' -e '/^! NVRAM config last updated at/d' -e '/^ntp clock-period/d' -e '/^: Written by/d' -e '/^! No configuration change since/d'" ----snip-------------------------------------------------------------------------------------------- It works fine with one problem. If there is a username in a filtered out line and the length of the username differs from the one in the previously commited config, the filesize of the two configs differs and git status shows this file as changed. Is it possible, to ignore the filesize completly, or are there any other Workarounds? Thanks, Thomas -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.