Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
git-repo
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux-tools
git-repo
Commits
9665fd35
Commit
9665fd35
authored
Mar 19, 2013
by
Matthias Putz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--amend
parent
52eb84ad
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1054 deletions
+5
-1054
.gitignore
.gitignore
+1
-1
workspace.xml
.idea/workspace.xml
+0
-1049
main.py
main.py
+4
-4
No files found.
.gitignore
View file @
9665fd35
bin
.idea/
workspace.xml
workspace.xml
*.bak
*.pyc
.repopickle_*
.idea/workspace.xml
deleted
100644 → 0
View file @
52eb84ad
This diff is collapsed.
Click to expand it.
main.py
View file @
9665fd35
...
...
@@ -61,7 +61,7 @@ global_options.add_option('--time',
global_options
.
add_option
(
'--version'
,
dest
=
'show_version'
,
action
=
'store_true'
,
help
=
'display this version of repo'
)
global_options
.
add_option
(
"--piped-into-
less"
,
action
=
"store_true"
,
dest
=
"pipedIntoLess
"
,
default
=
False
)
global_options
.
add_option
(
"--piped-into-
pager"
,
action
=
"store_true"
,
dest
=
"pipedIntoPager
"
,
default
=
False
)
def
_UsePager
(
name
,
cmd
,
gopts
,
copts
):
...
...
@@ -410,14 +410,14 @@ def _WindowsPager(repo):
args2
=
args
[
argsSplit
+
1
:]
pager
=
_SelectPager
(
cmd
.
manifest
.
globalConfig
)
shellCommand
=
"
%
s
%
s
%
s -- --piped-into-
less
--no-pager
%
s |
%
s"
%
(
python
,
thisScript
,
' '
.
join
(
args1
),
' '
.
join
(
args2
),
pager
)
shellCommand
=
"
%
s
%
s
%
s -- --piped-into-
pager
--no-pager
%
s |
%
s"
%
(
python
,
thisScript
,
' '
.
join
(
args1
),
' '
.
join
(
args2
),
pager
)
os
.
system
(
shellCommand
)
return
True
else
:
# set global variable if output is piped into
less
; means that pager is simulated, this
# set global variable if output is piped into
pager
; means that pager is simulated, this
# leads to correct coloring in windows
import
pager
pager
.
active
=
gopts
.
pipedInto
Less
pager
.
active
=
gopts
.
pipedInto
Pager
return
False
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment