Improve all Makefile to display diff for new added files

This commit is contained in:
gbaconni
2022-04-26 12:44:40 +02:00
parent 5cb8d465bf
commit 2a2f6f3a9d
2 changed files with 6 additions and 4 deletions

View File

@@ -6,7 +6,7 @@
# By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/01/18 15:11:16 by gbaconni #+# #+# #
# Updated: 2022/04/26 12:11:46 by gbaconni ### ########.fr #
# Updated: 2022/04/26 12:43:41 by gbaconni ### ########.fr #
# #
# **************************************************************************** #
#
@@ -135,6 +135,7 @@ doc:
update: sync
sync: online pull
@git ls-files --others --exclude-standard | xargs diff -Naur '' | less -F
@git status | grep -q 'nothing to commit' || (git diff; read -p "Comment: " comment; git add -A; git commit -am "$${comment-$$(date '+%F %T')}"; git push)
online: