Skip to content

Commit 56664fa

Browse files
committed
Merge branch 'develop'
2 parents d55ca4b + 90086e0 commit 56664fa

31 files changed

+1230
-844
lines changed

.travis.sh

+3
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ cd libgit2/
88
mkdir build && cd build
99
cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DBUILD_CLAR=OFF # don't build unit tests
1010
cmake --build . --target install
11+
ls -la ..
12+
13+
cd ~

.travis.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,15 @@ python:
88
- "3.4"
99
- "pypy"
1010

11-
before_install:
12-
- sudo apt-get install cmake
13-
- "./.travis.sh"
14-
- git config --global user.name "travis-test"
15-
- git config --global user.email "[email protected]"
11+
env: LIBGIT2=~/libgit2/_install/ LD_LIBRARY_PATH=~/libgit2/_install/lib
1612

17-
install:
18-
- pip install .
13+
before_install: "./.travis.sh"
1914

20-
env: LIBGIT2=~/libgit2/_install/ LD_LIBRARY_PATH=~/libgit2/_install/lib
15+
install: pip install .
16+
17+
before_script:
18+
- git config --global user.name "travis-test"
19+
- git config --global user.email "[email protected]"
2120

2221
script:
2322
- nosetests

AUTHORS.md

-10
This file was deleted.

README.md

+10-14
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ people complain that Git is hard to use. We think the problem lies deeper than
1111
the user interface, in the concepts underlying Git. Gitless is an experiment to
1212
see what happens if you put a simple veneer on an app that changes the
1313
underlying concepts. Because Gitless is implemented on top of Git (could be
14-
considered what Git pros call a 'porcelain' of Git), you can always fall
14+
considered what Git pros call a "porcelain" of Git), you can always fall
1515
back on Git. And of course your coworkers you share a repo with need never know
1616
that you're not a Git aficionado.
1717

1818
More info, downloads and documentation @ [Gitless's website](
1919
http://gitless.com "Gitless's website").
2020

21-
Questions or comments about Gitless can be sent to the [
21+
Questions or comments can be sent to the [
2222
Gitless users mailing list](
2323
https://groups.google.com/forum/#!forum/gl-users
2424
"Gitless users mailing list").
@@ -34,9 +34,9 @@ We currently require Git (1.7.12+) to be installed (but this requirement is
3434
going to disappear soon once we finish with our migration to pygit2).
3535

3636
Note to Windows users: we currently have no binary release for Windows. If you
37-
are having trouble getting v0.7 to work in Windows (we now depend on pygit2 in
38-
addition to `git`), you can try v0.6.2 instead (which depends only on
39-
`git`) and people have managed to get it working.
37+
are having trouble getting the latest version to work (we now depend
38+
on pygit2 in addition to `git`), you can try v0.6.2 instead (which depends only
39+
on `git`) and people have managed to get it working.
4040

4141

4242
### Binary releases
@@ -51,7 +51,7 @@ gl binary, so to install simply do:
5151
$ cp path-to-downloaded-gl-binary /usr/local/bin/gl
5252

5353
You can put the binary in other locations as well, just be sure to update your
54-
PATH.
54+
`PATH`.
5555

5656
If for some reason this doesn't work (maybe you are running an old version of
5757
your OS?), try one of the other options (installing from source code or via
@@ -91,16 +91,14 @@ Contribute
9191

9292
There are several ways you can contribute to the project:
9393

94-
- Design: if you have any feedback about Gitless's design we would love to
95-
hear from you. You can create an issue in the project with your
96-
feedback/questions/suggestions or shoot us an email.
9794
- Reporting bugs: did you find a bug? create an issue for it and we'll fix it
9895
ASAP.
9996
- Code: you can browse through the open issues and see if there's something
10097
there you would like to hack on. Is something missing? feel free to propose it!
98+
- Design: if you have any feedback about Gitless's design we would love to
99+
hear from you. You can create an issue in the project with your
100+
feedback/questions/suggestions or shoot us an email.
101101

102-
After you've contributed you can send us a pull request adding yourself to the
103-
AUTHORS file if you want to.
104102

105103
If you're planning on submitting code here are some useful things to know:
106104

@@ -116,6 +114,4 @@ Gitless's code so that your edits are consistent with the codebase.
116114

117115
- Finally, if you don't want [Travis](
118116
https://travis-ci.org/sdg-mit/gitless "Travis") to
119-
be mad at you, check that the tests pass in python 2.6, 2.7, 3.2 and 3.3 and
120-
that you don't have any pylint *errors* (warnings and refactor suggestions are
121-
ok).
117+
be mad at you, check that tests pass in python 2.6, 2.7 and 3.2+.

RELEASE_NOTES.md

-142
This file was deleted.

gitless/cli/commit_dialog.py

+11-13
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,24 @@ def show(files, repo):
3939
cf = io.open(_commit_file(repo), mode='wb')
4040
else:
4141
cf = io.open(_commit_file(repo), mode='w', encoding=ENCODING)
42-
if repo.current_branch.merge_in_progress:
42+
43+
curr_b = repo.current_branch
44+
if curr_b.merge_in_progress or curr_b.fuse_in_progress:
4345
merge_msg = io.open(
4446
_merge_msg_file(repo), mode='r', encoding=ENCODING).read()
4547
cf.write(merge_msg)
46-
elif repo.current_branch.rebase_in_progress:
47-
pprint.msg(
48-
'The commit will have the original commit message', p=cf.write)
4948
cf.write('\n')
50-
pprint.sep(p=cf.write)
49+
pprint.sep(stream=cf.write)
5150
pprint.msg(
52-
'Please enter the commit message for your changes above. Lines starting '
53-
'with', p=cf.write)
51+
'Please enter the commit message for your changes above, an empty '
52+
'message aborts', stream=cf.write)
53+
pprint.msg('the commit.', stream=cf.write)
54+
pprint.blank(stream=cf.write)
5455
pprint.msg(
55-
'\'#\' will be ignored, and an empty message aborts the commit.',
56-
p=cf.write)
57-
pprint.blank(p=cf.write)
58-
pprint.msg('These are the files that will be commited:', p=cf.write)
56+
'These are the files whose changes will be commited:', stream=cf.write)
5957
for f in files:
60-
pprint.item(f, p=cf.write)
61-
pprint.sep(p=cf.write)
58+
pprint.item(f, stream=cf.write)
59+
pprint.sep(stream=cf.write)
6260
cf.close()
6361
_launch_editor(cf.name, repo)
6462
return _extract_msg(repo)

gitless/cli/file_cmd.py

+5-8
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,18 @@
77

88
from __future__ import unicode_literals
99

10-
import os
11-
1210
from . import helpers, pprint
1311

1412

1513
VOWELS = ('a', 'e', 'i', 'o', 'u')
1614

1715

1816
def parser(help_msg, subcmd):
19-
def f(subparsers):
17+
def f(subparsers, repo):
2018
p = subparsers.add_parser(subcmd, help=help_msg)
2119
p.add_argument(
2220
'files', nargs='+', help='the file(s) to {0}'.format(subcmd),
23-
action=helpers.PathProcessor)
21+
action=helpers.PathProcessor, repo=repo)
2422
p.set_defaults(func=main(subcmd))
2523
return f
2624

@@ -30,16 +28,15 @@ def f(args, repo):
3028
curr_b = repo.current_branch
3129
success = True
3230

33-
root = repo.root
3431
for fp in args.files:
3532
try:
36-
getattr(curr_b, subcmd + '_file')(os.path.relpath(fp, root))
37-
pprint.msg(
33+
getattr(curr_b, subcmd + '_file')(fp)
34+
pprint.ok(
3835
'File {0} is now a{1} {2}{3}d file'.format(
3936
fp, 'n' if subcmd.startswith(VOWELS) else '', subcmd,
4037
'' if subcmd.endswith('e') else 'e'))
4138
except KeyError:
42-
pprint.err('Can\'t {0} a non-existent file: {1}'.format(subcmd, fp))
39+
pprint.err('Can\'t {0} non-existent file {1}'.format(subcmd, fp))
4340
success = False
4441
except ValueError as e:
4542
pprint.err(e)

gitless/cli/gl.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
from . import (
2020
gl_track, gl_untrack, gl_status, gl_diff, gl_commit, gl_branch,
21-
gl_checkout, gl_merge, gl_resolve, gl_rebase, gl_remote, gl_publish,
21+
gl_checkout, gl_merge, gl_resolve, gl_fuse, gl_remote, gl_publish,
2222
gl_switch, gl_init, gl_history)
2323
from . import pprint
2424

@@ -29,7 +29,7 @@
2929
INTERNAL_ERROR = 3
3030
NOT_IN_GL_REPO = 4
3131

32-
VERSION = '0.7'
32+
VERSION = '0.8'
3333
URL = 'http://gitless.com'
3434

3535

@@ -56,10 +56,10 @@ def main():
5656

5757
sub_cmds = [
5858
gl_track, gl_untrack, gl_status, gl_diff, gl_commit, gl_branch,
59-
gl_checkout, gl_merge, gl_resolve, gl_rebase, gl_remote, gl_publish,
59+
gl_checkout, gl_merge, gl_resolve, gl_fuse, gl_remote, gl_publish,
6060
gl_switch, gl_init, gl_history]
6161
for sub_cmd in sub_cmds:
62-
sub_cmd.parser(subparsers)
62+
sub_cmd.parser(subparsers, repo)
6363

6464
args = parser.parse_args()
6565
try:
@@ -73,8 +73,8 @@ def main():
7373
return SUCCESS
7474
except core.NotInRepoError as e:
7575
pprint.err(e)
76-
pprint.err_exp('do gl init to make this directory a repository')
77-
pprint.err_exp('do gl init remote_repo for cloning an existing repository')
76+
pprint.err_exp('do gl init to turn this directory into an empty repository')
77+
pprint.err_exp('do gl init remote_repo to clone an existing repository')
7878
return NOT_IN_GL_REPO
7979
except (ValueError, pygit2.GitError, core.GlError) as e:
8080
pprint.err(e)
@@ -83,9 +83,9 @@ def main():
8383
pprint.err(e.stderr)
8484
return ERRORS_FOUND
8585
except:
86-
pprint.err(
87-
'Oops...something went wrong (recall that Gitless is in beta). If you '
88-
'want to help, see {0} for info on how to report bugs and include the '
89-
'following information:\n\n{1}\n\n{2}'.format(
86+
pprint.err('Some internal error occurred')
87+
pprint.err_exp(
88+
'If you want to help, see {0} for info on how to report bugs and '
89+
'include the following information:\n\n{1}\n\n{2}'.format(
9090
URL, VERSION, traceback.format_exc()))
9191
return INTERNAL_ERROR

0 commit comments

Comments
 (0)