Ir al contenido principal

Entradas

Mostrando las entradas etiquetadas como development

How to get the path and name from git log

Hi people. The last day, I got a simple task, get all path and name from git log. In this case It's only necessary a console and project whit some commits .  The simplest command is there: git log --raw This command get the name of author, date, commit and file affected. Is simple but is not for me, because I need the path and name of the file affected. Not all these data The second command is here: git log --pretty=format: --name-only The command getting only the path and name; is just I needed. Not showing extra data, but it's separate by newline (later is necessary to delete for create a report for my boos) If you need show the author and date, only add some parameters, for example git log --pretty=format:"%an, %ar%n" --name-only Another way for get only paths and names is there, the problem with this command is getting all files. You think, my project contains 10k files affected, the time to get all data is slow. This command is not insert newline for separa