You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rev_news/drafts/edition-116.md
+21-21Lines changed: 21 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Welcome to the 116th edition of [Git Rev News](https://git.github.io/rev_news/re
13
13
a digest of all things Git. For our goals, the archives, the way we work, and how to contribute or to
14
14
subscribe, see [the Git Rev News page](https://git.github.io/rev_news/rev_news/) on [git.github.io](http://git.github.io).
15
15
16
-
This edition covers what happened during the months of September 2024 and October 2024.
16
+
This edition covers what happened during the months of September and October 2024.
17
17
18
18
## Discussions
19
19
@@ -27,7 +27,7 @@ This edition covers what happened during the months of September 2024 and Octobe
27
27
28
28
### Support
29
29
30
-
*[fatal from submodule status --recursive when used with grep -q](https://lore.kernel.org/git/CAKDm0rNaHbzoiPg=DeuCoxzooNAsxw2BJfc0wg7fC_-=o9uJ7w@mail.gmail.com/)
30
+
*[fatal from `submodule status --recursive` when used with `grep -q`](https://lore.kernel.org/git/CAKDm0rNaHbzoiPg=DeuCoxzooNAsxw2BJfc0wg7fC_-=o9uJ7w@mail.gmail.com/)
31
31
32
32
Matt Liberty reported that when he tried using
33
33
`git submodule status --recursive | grep -q "^+"` on a repo with
@@ -41,11 +41,11 @@ This edition covers what happened during the months of September 2024 and Octobe
41
41
42
42
Phillip Wood replied to Matt saying he assumed that `grep`'s exit
43
43
broke the pipe between `git` and `grep`, so `git` received a
44
-
'SIGPIPE' signal which killed it. Phillip suggested consuming the
44
+
`SIGPIPE` signal which killed it. Phillip suggested consuming the
45
45
whole output from Git if the exit code from it was wanted.
46
46
47
47
Matt replied to Phillip that he was interested in the exit code from
48
-
`grep` not from `git` and that Git shouldn't output any error when
48
+
`grep`, not from `git`, and that Git shouldn't output any error when
49
49
its output is connected to a pipe that gets broken, in the same way
50
50
as the `yes` command, for example, doesn't output any error when
51
51
piped to `grep -q y`.
@@ -59,17 +59,17 @@ This edition covers what happened during the months of September 2024 and Octobe
59
59
60
60
Then Phillip replied to Matt's first reply to him. He asked if all
61
61
Matt wanted was that `git submodule status` did not print any error
62
-
message when it receives a SIGPIPE signal. Matt replied that he
62
+
message when it receives a `SIGPIPE` signal. Matt replied that he
63
63
wanted both no error message and a 0 exit code from it.
64
64
65
65
Junio replied to Matt that it was reasonable to ask for no error
66
66
message, but it should be OK if the exit code was related to the
67
-
SIGPIPE message that the Git command received and that killed
67
+
`SIGPIPE` message that the Git command received and that killed
68
68
it. Junio used the example that even `yes` exited with code 130 when
69
69
killed using the Control-C keys on a terminal.
70
70
71
71
The exit code associated with a signal is '128 + the signal number',
72
-
for example as the Control-C keys send a SIGINT signal, which signal
72
+
for example as the Control-C keys send a `SIGINT` signal, which signal
73
73
number is 2, processes killed this way should exit with code '128 + 2',
74
74
so 130.
75
75
@@ -82,7 +82,7 @@ This edition covers what happened during the months of September 2024 and Octobe
82
82
shell option was used.
83
83
84
84
Phillip replied to Matt suggesting he remap the exit code
85
-
associated with SIGPIPE, which is 141 (128 + 13) to 0, if he was
85
+
associated with `SIGPIPE`, which is 141 (128 + 13), to 0, if he was
86
86
using `pipefail` but still wanted a 0 exit code. Phillip also gave
87
87
an example shell function to help with that remapping, and sent
88
88
[a first version of a patch](https://lore.kernel.org/git/[email protected]/)
@@ -114,23 +114,23 @@ _Editor's note: Just like in our previous edition, we return with another
114
114
115
115
C was the first programming language that I learnt, and I wanted to
116
116
try working on a non-trivial software project. I watched a YouTube
117
-
video on open-source and that’s where I got the idea of looking for
117
+
video on opensource and that’s where I got the idea of looking for
118
118
open-source projects to contribute to. Git and VLC were the only
119
119
open-source C-written software that I was familiar with and used in
120
120
day-to-day life, so I decided to start contributing to Git out of the two.
121
-
By the time GSoC came around, Git was the only open-source
121
+
By the time GSoC came around, Git was the only opensource
122
122
community that I was familiar with, so I decided to choose it as my
123
123
GSoC organization.
124
124
125
125
* How do you feel your contribution has impacted the Git community
0 commit comments