Skip to content

Commit 7dc7a86

Browse files
committed
Merge branch 'develop' of https://github.com/stdlib-js/stdlib into develop
2 parents 294bdb6 + 06b1845 commit 7dc7a86

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

lib/node_modules/@stdlib/blas/ext/base/gfill-by/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function fill( v, i ) {
131131
var x = [ -2.0, 1.0, 3.0, -5.0, 4.0, 0.0, -1.0, -3.0 ];
132132

133133
gfillBy.ndarray( x.length, x, 1, 0, fill );
134-
// x => [ 0.0, 1.0, 6.0, -15.0, 20.0, 0.0, -7.0, -24.0 ]
134+
// x => [ 0.0, 1.0, 6.0, -15.0, 16.0, 0.0, -6.0, -21.0 ]
135135
```
136136

137137
The function has the following additional parameters:

tools/git/hooks/pre-commit

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,19 @@ on_error() {
6868

6969
# Runs clean-up tasks.
7070
cleanup() {
71+
# Restore stashed changes to the working tree:
72+
git stash pop -q
73+
7174
echo '' >&2
7275
}
7376

77+
# Runs initialization tasks.
78+
init() {
79+
# Stash any changes to the working tree that are not going to be committed:
80+
git stash -q --keep-index
81+
return 0
82+
}
83+
7484
# Checks for non-ASCII filenames (to ensure cross platform portability).
7585
check_filenames() {
7686
local num_files
@@ -340,6 +350,10 @@ run_lint() {
340350

341351
# Main execution sequence.
342352
main() {
353+
init
354+
if [[ "$?" -ne 0 ]]; then
355+
on_error 1
356+
fi
343357
check_filenames
344358
if [[ "$?" -ne 0 ]]; then
345359
on_error 1

0 commit comments

Comments
 (0)