Skip to content

Commit acbcbaa

Browse files
authored
Merge branch 'master' into entr-fswatcher
2 parents 1bb46fa + 877092e commit acbcbaa

File tree

129 files changed

+21780
-4434
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+21780
-4434
lines changed

.travis.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
language: c
2-
32
sudo: false
43

54
addons:
@@ -10,10 +9,8 @@ addons:
109
- valgrind
1110

1211
env:
13-
global:
14-
matrix:
15-
- TRAVIS_TIG=autoconf
16-
- TRAVIS_TIG=config
12+
- TIG_BUILD=autoconf
13+
- TIG_BUILD=config.make
1714

1815
compiler:
1916
- gcc
@@ -23,6 +20,14 @@ script: tools/travis.sh
2320

2421
matrix:
2522
include:
23+
- env: TIG_BUILD=valgrind
24+
script: tools/travis.sh
25+
- env: TIG_BUILD=address-sanitizer
26+
compiler: clang
27+
# LeakSanitizer requires ptrace capabilities
28+
# https://github.com/travis-ci/travis-ci/issues/9033
29+
sudo: required
30+
script: tools/travis.sh
2631
- if: branch = master
2732
os: osx
2833
env:

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ COMPAT_CPPFLAGS += -DNO_WORDEXP
274274
COMPAT_OBJS += compat/wordexp.o
275275
endif
276276

277-
COMPAT_OBJS += compat/hashtab.o compat/wcwidth.o
277+
COMPAT_OBJS += compat/hashtab.o compat/utf8proc.o
278278

279279
override CPPFLAGS += $(COMPAT_CPPFLAGS)
280280

@@ -316,6 +316,7 @@ TIG_OBJS = \
316316
src/stash.o \
317317
src/grep.o \
318318
src/ui.o \
319+
src/apps.o \
319320
$(GRAPH_OBJS) \
320321
$(COMPAT_OBJS)
321322

@@ -324,7 +325,7 @@ src/tig: $(TIG_OBJS)
324325
TEST_GRAPH_OBJS = test/tools/test-graph.o src/string.o src/util.o src/io.o $(GRAPH_OBJS) $(COMPAT_OBJS)
325326
test/tools/test-graph: $(TEST_GRAPH_OBJS)
326327

327-
DOC_GEN_OBJS = tools/doc-gen.o src/string.o src/types.o src/util.o src/request.o compat/wcwidth.o
328+
DOC_GEN_OBJS = tools/doc-gen.o src/string.o src/types.o src/util.o src/request.o $(COMPAT_OBJS)
328329
tools/doc-gen: $(DOC_GEN_OBJS)
329330

330331
OBJS = $(sort $(TIG_OBJS) $(TEST_GRAPH_OBJS) $(DOC_GEN_OBJS))

NEWS.adoc

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,33 @@
11
Release notes
22
=============
33

4+
master
5+
------
6+
7+
Improvements:
8+
9+
- Add 'send-child-enter' option to control interaction with child views. (#791)
10+
- Update make config defaults for Cygwin to ncurses6. (GH #792)
11+
- Build against netbsd-curses. (GH #789)
12+
- Change the blame view to render more like `git blame`. (GH #812)
13+
- Improve worktree and submodule support. (GH #459, #781, #783)
14+
- Support running Tig via a Git alias. (GH #763)
15+
- Use ISO-8601 letters for short relative dates. (GH #759, #760)
16+
- Change date formatting to show timezones by default. (GH #428, #811)
17+
- Use utf8proc to handle Unicode characters. (GH #827)
18+
19+
Bug fixes:
20+
21+
- Fix `file(1)` argument on Linux used for resolving encodings. (GH #788)
22+
- Fix underflow in the file search. (GH #800, #801)
23+
- Fix line numbers in grep view when scrolled. (GH #813)
24+
- Pass command line args through to the stage view. (GH #569, #823)
25+
- Fix resource leak. (GH #780)
26+
- Fix various compiler warnings and pointer arithmetic. (GH #799, #803)
27+
- Workaround potential null pointer dereferences. (GH #824)
28+
- Bind to single and double quotes by using the *<SingleQuote>* and
29+
*<DoubleQuote>* key mappings. (GH #821)
30+
431
tig-2.3.3
532
---------
633

README.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ Tig: text-mode interface for Git
22
================================
33
:docext: adoc
44

5-
image:https://secure.travis-ci.org/jonas/tig.svg?branch=master[Build Status,link=http://travis-ci.org/jonas/tig]
5+
image:https://secure.travis-ci.org/jonas/tig.svg?branch=master[Travis Build,link=https://travis-ci.org/jonas/tig]
6+
image:https://ci.appveyor.com/api/projects/status/jxt1uf52o7r0a8r7/branch/master?svg=true[AppVeyor Build,link=https://ci.appveyor.com/project/fonseca/tig]
67
image:https://badges.gitter.im/Join%20Chat.svg[Join Chat,link="https://gitter.im/jonas/tig?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"]
78

89
What is Tig?

appveyor.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
environment:
2+
matrix:
3+
- TARGET: cygwin64
4+
ARCH: x86_64
5+
6+
install:
7+
- cmd: C:\%TARGET%\setup-%ARCH%.exe -qgnNdO -l C:\%TARGET%\var\cache\setup -R C:\%TARGET% -s http://cygwin.mirror.constant.com -P git -P gcc-code -P make -P automake -P libiconv-devel -P libncurses-devel
8+
- cmd: SET PATH=C:\%TARGET%\bin;%PATH%
9+
10+
build_script:
11+
- make configure
12+
- sh configure
13+
- make
14+
15+
test_script:
16+
- make test

compat/hashtab.c

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* An expandable hash tables datatype.
2-
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2009, 2010
3-
Free Software Foundation, Inc.
2+
Copyright (C) 1999-2018 Free Software Foundation, Inc.
43
Contributed by Vladimir Makarov ([email protected]).
54
65
This file is part of the libiberty library.
@@ -729,7 +728,7 @@ htab_remove_elt_with_hash (htab_t htab, PTR element, hashval_t hash)
729728
PTR *slot;
730729

731730
slot = htab_find_slot_with_hash (htab, element, hash, NO_INSERT);
732-
if (*slot == HTAB_EMPTY_ENTRY)
731+
if (!slot || *slot == HTAB_EMPTY_ENTRY)
733732
return;
734733

735734
if (htab->del_f)
@@ -965,17 +964,17 @@ iterative_hash (const PTR k_in /* the key */,
965964
c += length;
966965
switch(len) /* all the case statements fall through */
967966
{
968-
case 11: c+=((hashval_t)k[10]<<24);
969-
case 10: c+=((hashval_t)k[9]<<16);
970-
case 9 : c+=((hashval_t)k[8]<<8);
967+
case 11: c+=((hashval_t)k[10]<<24); /* fall through */
968+
case 10: c+=((hashval_t)k[9]<<16); /* fall through */
969+
case 9 : c+=((hashval_t)k[8]<<8); /* fall through */
971970
/* the first byte of c is reserved for the length */
972-
case 8 : b+=((hashval_t)k[7]<<24);
973-
case 7 : b+=((hashval_t)k[6]<<16);
974-
case 6 : b+=((hashval_t)k[5]<<8);
975-
case 5 : b+=k[4];
976-
case 4 : a+=((hashval_t)k[3]<<24);
977-
case 3 : a+=((hashval_t)k[2]<<16);
978-
case 2 : a+=((hashval_t)k[1]<<8);
971+
case 8 : b+=((hashval_t)k[7]<<24); /* fall through */
972+
case 7 : b+=((hashval_t)k[6]<<16); /* fall through */
973+
case 6 : b+=((hashval_t)k[5]<<8); /* fall through */
974+
case 5 : b+=k[4]; /* fall through */
975+
case 4 : a+=((hashval_t)k[3]<<24); /* fall through */
976+
case 3 : a+=((hashval_t)k[2]<<16); /* fall through */
977+
case 2 : a+=((hashval_t)k[1]<<8); /* fall through */
979978
case 1 : a+=k[0];
980979
/* case 0: nothing left to add */
981980
}

0 commit comments

Comments
 (0)