On Wed, Mar 11, 2015 at 2:00 PM, Michael Sheaver <mshea...@me.com> wrote: > I do a lot of work in MySQL,
My condolences! [grin] > and have a bunch of import scripts where only > one line is routinely changed to match the filename of data files. Is it > possible to flag a single line to be ignored by git? No. > If so, how is it done? > I know that gitignore can be used for whole files, but I wonder if the same > concept can be applied to single lines within a file. I want git to watch > all of the other lines in the file but the "ignored" line. > What language is the script written in? Could you change the "hard coded" filename to a script variable set by the command invocation? Silly example: $cat do_echo #!/bin/sh echo filename invoked with: .$/do_echo becomes $cat do_echo #!/bin/sh echo "$1" invoked with: $./do_echo filename Windows <shudder> batch files can do the same thing, but I don't know the syntax. -- He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown -- 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.