Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
modern-office-git-diff
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Hübelbauer
modern-office-git-diff
Commits
299065ca
Commit
299065ca
authored
Jan 04, 2018
by
Tomáš Hübelbauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix hook links and run test in the pre-commit hook
parent
9f2e4238
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
README.md
README.md
+2
-2
tasks.md
doc/tasks.md
+0
-6
pre-commit-development.sh
hook/pre-commit-development.sh
+2
-0
No files found.
README.md
View file @
299065ca
...
@@ -54,7 +54,7 @@ cp .git/hooks/pre-commit.sample .git/hooks/pre-commit
...
@@ -54,7 +54,7 @@ cp .git/hooks/pre-commit.sample .git/hooks/pre-commit
code .git/hooks/pre-commit
code .git/hooks/pre-commit
```
```
-
Paste the contents of
(hook/pre-commit.sh)
[
hook/pre-commit.sh
]
into
`.git/hooks/pre-commit`
.
-
Paste the contents of
[
hook/pre-commit.sh
](
hook/pre-commit.sh
)
into
`.git/hooks/pre-commit`
.
Observe commit diffs to see Office file changes in the XML and TXT files.
Observe commit diffs to see Office file changes in the XML and TXT files.
...
@@ -74,7 +74,7 @@ This repository is licensed under the [MIT license](LICENSE.md).
...
@@ -74,7 +74,7 @@ This repository is licensed under the [MIT license](LICENSE.md).
## Contributing
## Contributing
Use
(hook/pre-commit-development.sh)
[
hook/pre-commit-development.sh
]
when contributing to this repository to also run tests.
Use
[
hook/pre-commit-development.sh
](
hook/pre-commit-development.sh
)
when contributing to this repository to also run tests.
See
[
planned development
](
doc/tasks.md
)
.
See
[
planned development
](
doc/tasks.md
)
.
...
...
doc/tasks.md
View file @
299065ca
...
@@ -30,12 +30,6 @@
...
@@ -30,12 +30,6 @@
-
Run Git commit
-
Run Git commit
-
Verify extraction directory has been created and text file matches
-
Verify extraction directory has been created and text file matches
## Make tests run on each commit in this repo
Flesh out
`hook/pre-commit-development.sh`
to invoke both scripts.
## Utilize GitHub/GitLab CI on top of the pre-commit hook
## Utilize GitHub/GitLab CI on top of the pre-commit hook
This is to capture online editor commits.
This is to capture online editor commits.
## Fix `README.md` MarkDown links to hooks and use inline blocks for their names
hook/pre-commit-development.sh
View file @
299065ca
...
@@ -3,9 +3,11 @@
...
@@ -3,9 +3,11 @@
#!/usr/bin/env bash
#!/usr/bin/env bash
if
[
!
-z
"command -v powershell"
]
if
[
!
-z
"command -v powershell"
]
then
then
powershell cmd/run-tests.ps1
powershell cmd/version-office-files.ps1
powershell cmd/version-office-files.ps1
elif
[
!
-z
"command -v pwsh"
]
elif
[
!
-z
"command -v pwsh"
]
then
then
pwsh cmd/run-tests.ps1
pwsh cmd/version-office-files.ps1
pwsh cmd/version-office-files.ps1
else
else
echo
"PowerShell is not installed."
echo
"PowerShell is not installed."
...
...
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