git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Wang Yugui <wangyugui@e16-tech.com>
To: git@vger.kernel.org
Subject: noeol when redirect git log output to a file
Date: Mon, 22 Feb 2021 23:14:07 +0800	[thread overview]
Message-ID: <20210222231406.CE72.409509F4@e16-tech.com> (raw)

Hi,

noeol when redirect git log output to a file.

[root@T640 ~]# git log '--pretty=format:%h: %an: %s' -- hw/ >a.txt
[root@T640 ~]# cat a.txt
c2accaa: wangyugui:
757bec2: wangyugui:
cefb5d4: wangyugui:
2fc0dbe: wangyugui:
6cfe6cf: wangyugui:
e8a94b1: wangyugui:
ba54c6a: wangyugui:
7de214e: wangyugui:
8f2588a: wangyugui:
5834825: wangyugui:
cd30711: wangyugui:
8807c7d: wangyugui:
edd4e92: wangyugui:
0c6f3dd: wangyugui:
38964f4: wangyugui:
4fd21e8: wangyugui:
52fa7b0: wangyugui:
93f5ddb: wangyugui:
47c7aa4: wangyugui:
ab23c1f: wangyugui: OK
8002e69: wangyugui:
da8a6d5: wangyugui:
ed2f4e0: wangyugui: baseline[root@T640 ~]#

but without redirect, it seems OK.
[root@T640 ~]# git log '--pretty=format:%h: %an: %s' -- hw/
c2accaa: wangyugui:
757bec2: wangyugui:
cefb5d4: wangyugui:
2fc0dbe: wangyugui:
6cfe6cf: wangyugui:
e8a94b1: wangyugui:
ba54c6a: wangyugui:
7de214e: wangyugui:
8f2588a: wangyugui:
5834825: wangyugui:
cd30711: wangyugui:
8807c7d: wangyugui:
edd4e92: wangyugui:
0c6f3dd: wangyugui:
38964f4: wangyugui:
4fd21e8: wangyugui:
52fa7b0: wangyugui:
93f5ddb: wangyugui:
47c7aa4: wangyugui:
ab23c1f: wangyugui: OK
8002e69: wangyugui:
da8a6d5: wangyugui:
ed2f4e0: wangyugui: baseline
[root@T640 ~]#


[System Info]
git version:
git version 2.30.1
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 5.10.17-3.el7.x86_64 #1 SMP Mon Feb 22 10:43:13 CST 2021 x86_64
compiler info: gnuc: 4.8
libc info: glibc: 2.17
$SHELL (typically, interactive shell): /bin/bash

[Enabled Hooks]
None

Best Regards
王玉贵
2021/02/22

--------------------------------------
北京京垓科技有限公司
王玉贵	wangyugui@e16-tech.com
电话:+86-136-71123776


             reply	other threads:[~2021-02-22 15:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-22 15:14 Wang Yugui [this message]
2021-02-22 17:20 ` noeol when redirect git log output to a file Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210222231406.CE72.409509F4@e16-tech.com \
    --to=wangyugui@e16-tech.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).