File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -553,6 +553,13 @@ $(LIB_FILE): $(LIB_OBJS)
553553doc :
554554 $(MAKE ) -C Documentation all
555555
556+ TAGS :
557+ rm -f TAGS
558+ find . -name ' *.[hcS]' -print | xargs etags -a
559+
560+ tags :
561+ rm -f tags
562+ find . -name ' *.[hcS]' -print | xargs ctags -a
556563
557564# ## Testing rules
558565
@@ -617,7 +624,7 @@ rpm: dist
617624clean :
618625 rm -f * .o mozilla-sha1/* .o arm/* .o ppc/* .o compat/* .o $(LIB_FILE )
619626 rm -f $(ALL_PROGRAMS ) git$X
620- rm -f * .spec * .pyc * .pyo * /* .pyc * /* .pyo common-cmds.h
627+ rm -f * .spec * .pyc * .pyo * /* .pyc * /* .pyo common-cmds.h TAGS tags
621628 rm -rf $(GIT_TARNAME )
622629 rm -f $(GIT_TARNAME ) .tar.gz git-core_$(GIT_VERSION ) -* .tar.gz
623630 $(MAKE ) -C Documentation/ clean
@@ -626,5 +633,5 @@ clean:
626633 rm -f GIT-VERSION-FILE
627634
628635.PHONY : all install clean strip
629- .PHONY : .FORCE-GIT-VERSION-FILE
636+ .PHONY : .FORCE-GIT-VERSION-FILE TAGS tags
630637
Original file line number Diff line number Diff line change @@ -93,11 +93,12 @@ static int add_excludes_from_file_1(const char *fname,
9393 close (fd );
9494 return 0 ;
9595 }
96- buf = xmalloc (size );
96+ buf = xmalloc (size + 1 );
9797 if (read (fd , buf , size ) != size )
9898 goto err ;
9999 close (fd );
100100
101+ buf [size ++ ] = '\n' ;
101102 entry = buf ;
102103 for (i = 0 ; i < size ; i ++ ) {
103104 if (buf [i ] == '\n' ) {
You can’t perform that action at this time.
0 commit comments